1.0.3 • Published 5 years ago

log4js-mongodb-pan v1.0.3

Weekly downloads
21
License
Apache-2.0
Repository
github
Last release
5 years ago

Mongodb Appender for log4js-node

npm install log4js-mongodb-pan

Configuration

The appender will use the Redis PUBLISH command to send the log event messages to the channel.

Example

log4js.configure({
  appenders: {
    mongodb: { type: 'log4js-mongodb-pan', channel: 'logs' }
  },
  categories: { default: { appenders: ['mongodb'], level: 'info' } }
});

This configuration will publish log messages to the logs channel on 127.0.0.1:6379.