Skip to content

Commit

Permalink
Reversed the syslog levels to match the npm and cli ascending order
Browse files Browse the repository at this point in the history
  • Loading branch information
abueckerMB committed May 30, 2013
1 parent 6cf229d commit e5b96bb
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions lib/winston/config/syslog-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
var syslogConfig = exports;

syslogConfig.levels = {
emerg: 0,
alert: 1,
crit: 2,
error: 3,
warning: 4,
notice: 5,
info: 6,
debug: 7,
debug: 0,
info: 1,
notice: 2,
warning: 3,
error: 4,
crit: 5,
alert: 6,
emerg: 7,
};

syslogConfig.colors = {
Expand All @@ -28,4 +28,5 @@ syslogConfig.colors = {
notice: 'yellow',
info: 'green',
debug: 'blue',
};
};

3 comments on commit e5b96bb

@brunomorency
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you submit a pull request on the main repo with that commit, it would solve issue winstonjs#249

@abueckerMB
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing. Done.

@brunomorency
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great! let's hope they can be just as fast in accepting it :)

Please sign in to comment.