Write log messages with lower levels to the log file.