add support for log4j logger