| Crates.io | nullnet-liblogging |
| lib.rs | nullnet-liblogging |
| version | 0.3.0 |
| created_at | 2025-02-17 15:36:04.855714+00 |
| updated_at | 2025-05-07 12:56:51.871991+00 |
| description | Logging library for NullNet |
| homepage | |
| repository | https://github.com/NullNet-ai/libguard |
| max_upload_size | |
| id | 1559050 |
| size | 55,368 |
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.
You can configure the log level by setting the LOG_LEVEL environment variable. The possible log levels are:
OFFERRORWARNINFODEBUGTRACEIf you don't set the LOG_LEVEL environment variable, TRACE will be used by default (the most verbose level).
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*).