Skip to content

Update for winston v3

Compare
Choose a tag to compare
@alestrunda alestrunda released this 06 Apr 11:57
· 16 commits to master since this release
2542c24
  • pass loggly http client errors to winston

  • add flushLogsAndExit function

  • add flag for network errors

  • update dependencies

  • fix js strict mode

  • fix sending winston splats
    extra properties in winston.log (called splats) are now being sent to Loggly as an array named "details". In winston v2 they were simply appended to the message. For example logging winston.log("info", "Hello World", { bar: "baz" }, { "foo": "test" }) will produce { level: "info", message: "Hello World", bar: "baz", details: [{ "foo": "test" }] }

  • use lodash.clonedeep for cloning

  • redo tests

  • remove legacy code

  • various small fixes

  • code formatting