@storyous/winston-gelf
v0.0.3
Published
GELF transport for Winston
Downloads
9
Readme
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)