add support for logger