Socket
Socket
Sign inDemoInstall

@storyous/winston-gelf

Package Overview
Dependencies
3
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @storyous/winston-gelf

GELF transport for Winston


Version published
Maintainers
4
Install size
2.04 MB
Created

Readme

Source

Winston GELF Transport

A GELF transport for Winston

Installation

  $ npm install winston
  $ npm install @storyous/winston-gelf

Usage

  const winston = require('winston');
  const { GELFTransport, ConsoleReporter } = require('winston-gelf');
  const options = {
    reporters: [new ConsoleReporter()],
  };

  const logger = new(winston.Logger)({
      transports: [new GELFTransport(options)]
  });

Options

  • reporters: List of reporters
  • version: Current application version
  • hostname: Hostname of application (default: os.hostname())
  • environment: Environment (default: process.env.NODE_ENV)
  • service: Service name (default: nodejs)
  • silent: Should silence reporters (default: false)
  • level: Level to report (default: info)

Keywords

FAQs

Last updated on 24 Apr 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc