log4js-ain2
An Ain2 based Syslog transport for log4js-node.
Installation
$ npm install log4js-ain2
Usage
To use this Syslog transport in log4js-node, you simply need to 'npm install' it and add it as an appender
Configuration file example:
Code example:
var log4js = ;log4js;var logger = log4js;logger;logger;logger;logger;logger;logger;
NOTE: Options are passed through to Ain2
Log Levels
This is the mapping from log4js-node levels to ain2 levels
ALL -> debug
TRACE -> debug
DEBUG -> debug
INFO -> info
WARN -> warn
ERROR -> err
FATAL -> crit
Syslog (ain2) Configuration
See ain2