A configuration driven winston infrastructure


2.1.13 years ago5 years agoMinified + gzip package size for @gasbuddy/configured-winston in KB



Greenkeeper badge

wercker status Coverage Status

A wrapper which hooks winston transports up via config. The config entry should have a "transports" property which has a list of transports to configure. It is specified via an object rather than array to allow enable/disable and multi-config file overlays (features of hydration and confit) to work more cleanly across environments.

Sample Configuration

  "logger": {
    "module": "@gasbuddy/configured-winston",
    "transports": {
      "file": {
        "name": "File",
        "filename": "/var/log/foobar.error.log",
        "config": {
          "level": "error"
    "console": false

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.