::
logger
¶n3rv logging class Allows to produce timestamped log inside files (so far, syslog udp/512 also planned).
Public Functions
add_dest
(const char *dest)¶Adds a destination for the log stream.
dest
: destination of the logs, eg “file:///var/log/n3rv.log”, “stdout”, or “syslog:name:facility” Note: available syslog facilities are “local0” to “local7”, and “user” operator>>
(std::istream &is)¶Note: If buffer encounters std::endl then if is flushed to destinations.
log
(int log_level, std::string str)¶Adds str to log buffer and flushes it.
log_level
: log level of the string to log. str
: string to log.