Define LOG_TO_FILE for debug build.