Make sure all messages go to the log file and that the logger knows
what the log file is as soon as possible.