added support for a Logger with a log4js-style API