Fix running logging without logFile.