don't create log file if log is disabled