SyslogPro

The SyslogPro module for sending syslog messages Most APIs will return a promise. These APIs can be used using `then(...)/catch(...)` Syslog formatting classes can be used as input into a Syslog class to be used simultaneously to the same Syslog server. The Syslog Class with a configured Syslog server target can also be used as the input into each of the formatting classes so that they may run independently.
Source:
Version:
  • 0.1.0
Author:

Classes

CEF
LEEF
RFC3164
RFC5424
Syslog

Methods

(private, inner) rgbToAnsi(hex) → {Promise}

Source:
Format the ANSI foreground color code from a RGB hex code or ANSI color code
Parameters:
Name Type Description
hex string The color hex code in the form of #FFFFFF or Number of the ANSI color code (30-37 Standard & 0-255 Extended)
Throws:
- A Format Error
Type
Error
Returns:
- The formatted ANSI color code
Type
Promise