pull #21: tweak readme

master
Trent Mick 2012-06-04 23:37:07 -07:00
parent ff3786f7d6
commit 7931359589
1 changed files with 7 additions and 1 deletions

View File

@ -443,7 +443,13 @@ Supported stream types are:
"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