flatiron/winston — Issue #94: Custom log levels
Author: jasonmcleod
Created: 2012-02-08 03:01:15+00:00
State: open

I'm unable to get custom log levels to work. I've tried updating node, installing winston via npm, and cloning the winston repo. The example code in the readme for custom levels runs without any errors:

```javascript
var myCustomLevels = {
levels: {
foo: 0,
bar: 1,
baz: 2,
foobar: 3
},
colors: {
foo: 'blue',
bar: 'green',
baz: 'yellow',
foobar: 'red'
}
};

var customLevelLogger = new (winston.Logger)({ levels: myCustomLevels.levels });
customLevelLogger.foobar('some foobar level-ed message');
```
but nothing prints out into console.

I've also tried a variation of
```javascript

var logger = new (winston.Logger)({
transports: [
new (winston.transports.Console)(),
new (winston.transports.File)({ filename: 'somefile.log' })
]
});

with logger.addLevels() but I get the same results. The new log levels I pass do nothing, and the originals (info, debug, etc.) are not available - just as expected.

```