log4js-mongodb-pan
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i log4js-mongodb-pan

Weekly Downloads

1

Version

1.0.3

License

Apache-2.0

Unpacked Size

19.7 kB

Total Files

5

Last publish

Collaborators

  • roypun