SyslogPro

The SyslogPro class for sending syslog messages
Source:
Version:
  • 0.0.0
Since:
  • 0.0.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 formated ANSI color code
Type
Promise