flatiron/winston — Issue #105: syslog codes are in reverse order
Author: fouasnon
Created: 2012-02-24 07:08:09+00:00
State: open

The syslog levels an codes in `config/syslog-config.js` is defined as

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

The rfc for the syslog protocol (http://tools.ietf.org/html/rfc5424#appendix-A.3) has the codes reversed so that 0 is more severe than 7. It should be

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

This makes writing transports that pass along the logs to other logging facilities displeasing.