don't create log file if logging is disabled