pull #21: tweak readme

This commit is contained in:
Trent Mick 2012-06-04 23:37:07 -07:00
parent ff3786f7d6
commit 7931359589

View file

@ -443,7 +443,13 @@ Supported stream types are:
"level": "warn" "level": "warn"
} }
- Bunyan re-emits error events if the file cannot be opened successfully. Bunyan re-emits error events from the created `WriteStream`. So you can
do this:
var log = new Logger({name: 'mylog', streams: [{path: LOG_PATH}]});
log.on('error', function (err, stream) {
// Handle stream write or create error here.
});
# License # License