refactoring: initialization of logger.