Skip to content

Graylog2 transport for winston, a nodejs logging module

License

Notifications You must be signed in to change notification settings

krivchun/winston-graylog2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

winston-graylog2 Build Status

Official deprecation notice: We're no longer activley maintaining this project, sorry! Please contact us if you'd like to take over ownership of this project.

A graylog2 transport for winston. Inspired by winston-mail transport and node-graylog.

Installation

Tested on node-0.6.x, requires npm.

  $ npm install winston
  $ npm install winston-graylog2

Usage

  var winston = require('winston');
  winston.add(require('winston-graylog2').Graylog2, options);

Options are the following:

  • level: Level of messages this transport should log. (default: info)

  • silent: Boolean flag indicating whether to suppress output. (default: false)

  • graylogHost: IP address or hostname of the graylog2 server. (default: localhost)

  • graylogPort: Port to send messages to on the graylog2 server. (default: 12201)

  • graylogHostname: The hostname associated with graylog2 messages. (default: require('os').hostname())

  • graylogFacility: The graylog2 facility to send log messages.. (default: nodejs)

About

Graylog2 transport for winston, a nodejs logging module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%