Adding support for logger.