Log debug messages to file.