Skip to content

jazzzz/winston-syslog-ain2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

winston-syslog-ain2

An Ain2 based Syslog transport for winston.

Installation

Installing npm (node package manager)

  $ curl http://npmjs.org/install.sh | sh

Installing winston-syslog

  $ npm install winston 
  $ npm install winston-syslog-ain2

Usage

To use this Syslog transport in winston, you simply need to require it and then either add it to an existing winston logger or pass an instance to a new winston logger:

  var winston = require('winston');
  
  var SyslogAin2=require('winston-syslog').SyslogAin2;
  
  winston.add(SyslogAin2,{});

Options are passed through to ain2

Log Levels

The Syslog transport will only log to the level that are available in the syslog protocol. These are (in increasing order of severity):

  • debug
  • info
  • notice
  • warning
  • error
  • crit
  • alert
  • emerg

Syslog Configuration

See ain2

Author: [lamtha]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%