node-log4js import Logger from 'node-log4js' const logger = new Logger().init({filename}) logger.info(...) logger.debug(...)