Better initialization of logger.