5 unstable releases
Uses new Rust 2024
| 0.3.0 | May 7, 2025 |
|---|---|
| 0.2.0 | Mar 3, 2025 |
| 0.1.2 | Feb 19, 2025 |
| 0.1.1 | Feb 18, 2025 |
| 0.1.0 | Feb 17, 2025 |
#1108 in Configuration
564 downloads per month
Used in nullnet-wallguard-server
19KB
427 lines
liblogging
Logging library for Nullnet.
Use this library simply by calling the Logger::init method with the desired configuration,
and then invoking the log macros.
It handles logs to console, syslog, and Datastore.
Each of these loggers can be enabled or disabled independently.
Log levels
You can configure the log level by setting the LOG_LEVEL environment variable. The possible log levels are:
OFFERRORWARNINFODEBUGTRACE
If you don't set the LOG_LEVEL environment variable, TRACE will be used by default (the most verbose level).
Allowed targets
By default, only logs from targets in the form nullnet*, appguard*, and wallguard* will be emitted.
To allow additional targets, set them in the LoggerConfig passed to the Logger::init method
(e.g., specifying "serde" will emit logs for all targets whose name is in the form serde*).
Dependencies
~17–33MB
~456K SLoC