sol-redis-syslogdeprecated

A module to listen in on Redis channels and log the messages to SYSLOG.

Usage no npm install needed!

<script type="module">
  import solRedisSyslog from 'https://cdn.skypack.dev/sol-redis-syslog';
</script>

README

sol-redis-syslog

A module to listen in on Redis channels and log the messages to SYSLOG.

Install

npm install sol-redis-syslog

Usage

var Logger = require("sol-redis-syslog");

// Listen to multiple channels on redis server for messages.
var channels = [
    "SYSLOG_INFO",
    "SYSLOG_DEMO"
];
var facility = Logger.FACILITY.syslog;
var severity = Logger.SEVERITY.info;
var logger = new Logger.Logger({host: "127.0.0.1", port: 6379}, "example_logger", facility, severity, channels, false);

Severities

    debug
    info
    notice
    warning
    error
    crit
    alert
    emerg

Facilities

    kern
    user
    mail
    daemon
    auth
    syslog
    lpr
    news
    uucp
    local0
    local1
    local2
    local3
    local4
    local5
    local6
    local7