An appender for printing log to syslog using log4js.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
index.js
package.json

README.md

posix-syslog-appender

An appender for printing log to syslog using log4js.

log4jsを使ってsyslogにlogを出力するためのappenderです。

Installation

$ npm install posix-syslog-appender --save

Example

import log4js from 'log4js';

log4js.configure({
  appenders: {
    syslog: {
      type: 'posix-syslog-appender',
      tag: 'myApp',
      facility: 'local0',
    },
  },
  categories: {
    development: {
      appenders: ['syslog'],
      level: 'all',
    },
  },
});

const log = log4js.getLogger('development');

log.info('message for you.');

License

MIT