Skip to content

Commit

Permalink
use correct log4js method calls (fixes YahooArchive#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
bitmensch committed Mar 7, 2018
1 parent c43adea commit 54e21d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/kobold.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ var Kobold = Base.extend(
function (options) {
this.__super();

this._logger = log4js.getDefaultLogger();
this._logger = log4js.getLogger();

options = utils.deepExtend({}, [defaultOptions, options || {}]);

this._verbose = options.verbose || false;
if (!this._verbose) {
log4js.setGlobalLogLevel('INFO');
this._logger.level = 'info';
}

this._highlightOnSuccess = options.highlightOnSuccess || false;
Expand Down

0 comments on commit 54e21d0

Please sign in to comment.