only log to file when teamCity logging is disabled.