Module common

Source

Structs§

LogFacility
The facility argument is used to specify what type of program is logging the message.
LogStat
Flags which control the operation of openlog() and subsequent calls to syslog.
Priority
This determines the importance of the message

Constants§

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
NILVALUE
RFC5424 defined value.
NILVALUE_B
RFC5424 defined value (bytes).
PATH_LOG
Unpriv socket
PATH_LOG_PRIV
Priviledged socket
PATH_OLDLOG
backward compatibility
PATH_OSX
OSX compat
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)
WSPACE

Statics§

PATH_CONSOLE
RFC5424_MAX_DGRAM

Functions§

get_internal_log
Returns the static configuration for internal log
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