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.
Classes
Methods
(private, inner) rgbToAnsi(hex) → {Promise}
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