Properly timed logging initialization