logger-json-stderr

log in json-format, only to stderr, using Bunyan

node-logger-json-stderr

Log JSON to stderr.

Currently, it uses Winston and Winston-stderr to do the work.

It has tests to ensure that:

  • log data is only written to stderr
  • log data is written in JSON format
  • all newline characters (\n) in the log data are escaped, such that each log data entry had only one unescaped newline at the end of the line -- this makes it easy to split your log files by newline in order to get each JSON string.