Skip to content

Commit

Permalink
[fix] Set levels on the defaultLogger when calling winston.cli()
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed May 20, 2011
1 parent 7b053c1 commit 6e546dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/winston.js
Expand Up @@ -57,6 +57,7 @@ utils.setLevels(winston, null, defaultLogger.levels);
winston.cli = function (foo, bar) {
winston.padLevels = true;
utils.setLevels(winston, defaultLogger.levels, winston.config.cli.levels);
defaultLogger.setLevels(winston.config.cli.levels);
winston.config.addColors(winston.config.cli.colors);

if (defaultLogger.transports.console) {
Expand Down

0 comments on commit 6e546dc

Please sign in to comment.