adding logger.