Socket
Book a DemoInstallSign in
Socket

@gasbuddy/configured-winston

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gasbuddy/configured-winston

A configuration driven winston infrastructure

latest
npmnpm
Version
2.1.1
Version published
Maintainers
2
Created
Source

configured-winston

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
  }

Keywords

logstash

FAQs

Package last updated on 26 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts