Fixed "racing-condition" of logging initialization and logging configuration.