Expand description
A common code which holds all flags and macroses.
Re-exports§
pub use self::common_syslog_items::*;
Modules§
Structs§
- Syslog
MsgPri Fac - A struct which contains syslog encoded Facility and Priority is the following order:
Constants§
- ATSIGN
- At-sign (“@”, ABNF %d64)
- CBRACE
- Closing brace (‘]’, ABNF %d93)
- CBRACE_
SEM - Closing brace RFC3…
- EQSIGN
- Eq-sign (“=”, ABNF %d61)
- ESC_
CHAR_ REPL - RFC5424 escape character.
- IANA_
PRIV_ ENT_ NUM - A private enterprise number.
- LOG_
FACMASK - mask to extract facility part
- MAXHOSTNAMELEN
- max hostname size
- MAXLINE
- Maximum number of characters of syslog message. According to RFC5424. However syslog-protocol also may state that the max message will be defined by the transport layer.
- NEXTLINE
- A cursor return.
- NILVALUE
- RFC5424 defined value.
- NILVALUE_
B - RFC5424 defined value (bytes).
- OBRACE
- Opening brace (‘[’, ABNF )
- QCHAR
- Quote-character (‘“’, ABNF %d34)
- RFC3164_
MAX_ PAYLOAD_ LEN - RFC3164 limit
- RFC5424_
TCP_ MAX_ PKT_ LEN - RFC5424_
UDP_ MAX_ PKT_ LEN - RFC_
MAX_ APP_ NAME - A max byte lenth of APPNAME (NILVALUE / 1*48PRINTUSASCII)
- WINDOWS_
EVENT_ REPORT_ MAX_ PAYLOAD_ LEN - A maximum message which could be passed to Windows Event Log
- WSPACE
- White space
Statics§
- PATH_
CONSOLE - Path to console.
- RFC5424_
MAX_ DGRAM - A max dgram init.
Functions§
- check_
printable - Checks if string are:
- escape_
chars - truncate
- This function trancated 1 last UTF8 character from the string.
- truncate_
n - Trancates the string up to closest to N byte equiv UTF8 if string exceeds size