From 79313595897c3928d29b811e6a1a252330de019f Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Mon, 4 Jun 2012 23:37:07 -0700 Subject: [PATCH] pull #21: tweak readme --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5bc0011..c818477 100644 --- a/README.md +++ b/README.md @@ -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