From 0d5021eebc0e6a31c0867a905fe5149b1258522c Mon Sep 17 00:00:00 2001 From: Misha Wolfson Date: Wed, 14 Dec 2016 17:04:30 -0500 Subject: [PATCH] Add stderr to logger config --- lib/logger.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/logger.js b/lib/logger.js index 8f53dc1..783cff8 100644 --- a/lib/logger.js +++ b/lib/logger.js @@ -16,6 +16,8 @@ if (config.get('bunyan') || config.get(env + ':use_bunyan')) { for (var i = 0; i < settings.streams.length; i++) { if (settings.streams[i].stream === 'process.stdout') { settings.streams[i].stream = process.stdout; + } else if (settings.streams[i].stream === 'process.stderr') { + settings.streams[i].stream = process.stderr; } }