flatiron/winston — pull request #127 by kenperkins (2012-04-11 18:43:45+00:00)
Title: Adding Level Decorators and an option to Send Debug to StdOut

This pull request has two key changes:

* Adding Level Decorators
* Adding a flag to send Debug level messages to StdOut

I'm not expecting the Pull Request as is to be accepted, but rather, to start the dialog about these proposals and to shape how they go from here.

LevelDecorators are an option on creating your transport that allow you to set the start and end characters for the decoration. For example:

``` js
transports.push(new winston.transports.Papertrail({
levelDecorators: ['[', ']'],
level: options.level,
host: options.host,
port: options.port,
program: options.program
}));
```

Similarly, for the Console transport, I've proposed a debug level to stdout as it was biting us in the ass to have non-linear levels going to different pipes, i.e. debug, verbose, info, warn, error as your levels in order of severity.

``` js
transports.push(new winston.transports.Console({
levelDecorators: ['[', ']'],
level: options.level,
colorize: true,
timestamp: true,
debugToStdOut: true
}));
```

Thoughts?