Crate nullnet_liblogging

Source
Expand description

§liblogging

Logging library for Nullnet.

It currently logs to the console and to syslog.

You can configure the log level by setting the LOG_LEVEL environment variable. The possible log levels are:

  • OFF
  • ERROR
  • WARN
  • INFO
  • DEBUG
  • TRACE

If you don’t set the LOG_LEVEL environment variable, TRACE will be used by default (the most verbose level).

Use this library simply by calling the Logger::init method, and then invoking the log macros.

Structs§

Logger
Logger implementation that logs to both syslog and console

Enums§

SyslogEndpoint
Possible syslog endpoints