log debug logs to file