log4js-node

A port of log4js to node.js

View the Project on GitHub

Redis Appender

Stores log events in a Redis database. You will need to include the redis package in your application’s dependencies to use this appender.

Configuration

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

Example

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

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