pull #21: tweak readme
This commit is contained in:
parent
ff3786f7d6
commit
7931359589
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue