Do not log to a file by default unless in debug mode