Bunyan can not be supported in Node versions > 8.9.1
As described in https://github.com/nodejs/node/issues/16949#issuecomment-350215564 since node-config does a deep clone of the config object, if bunyan
is the configured logger, it leads to access of e.g. _handle.__proto__.bytesRead
which, depending on your Node version, returns undefined (8.8.1 and lower), segfaults (8.9 and higher) or throws (8.9.2 and higher).
This doesn't happen with winston
as the configured logger, so it's possible that bunyan could do something about the way they expose/not expose stdout/stdin in the exported object. Opened an issue at bunyan HQ: https://github.com/trentm/node-bunyan/issues/571
More information here: https://github.com/nodejs/node/issues/17636 https://github.com/nodejs/node/pull/16482 https://github.com/nodejs/node/pull/16860