diff --git a/lib/logger.js b/lib/logger.js index dcf7ddfde9..47e8369aa7 100644 --- a/lib/logger.js +++ b/lib/logger.js @@ -1,9 +1,11 @@ 'use strict'; const log4js = require('log4js'); - -log4js.clearAppenders(); -log4js.addAppender(log4js.appenders.console()); +log4js.configure({ + appenders: [ + { type: 'console' }, + ] +}); const logger = log4js.getLogger('unleash'); diff --git a/package.json b/package.json index 00fdd99ee4..92bbf0a86d 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "install": "^0.8.1", "joi": "^9.2.0", "knex": "^0.12.6", - "log4js": "^0.6.38", + "log4js": "^1.0.1", "moment": "^2.15.2", "pg": "^6.1.0", "serve-favicon": "^2.3.0",