Implement logger.