Skip to main content

Module log_configuration

Module log_configuration 

Source

Enums§

LogLevel

Statics§

RELOAD_HANDLE 🔒

Functions§

init_logger
Initializes the global logger. Writing a Lib? Only use the tracing crate and its macros (info!, span!). Do not initialize anything. Writing a Binary? Use tracing-subscriber to build the registry and handlers. Missing dependency logs? Check your EnvFilter string rules and ensure the “log” feature is enabled on tracing-subscriber to catch legacy logs Returns a WorkerGuard that must be kept alive to ensure logs are flushed to the file. If later wanna do rsyslog (libc): https://docs.rs/syslog-tracing/0.3.1/syslog_tracing/struct.Syslog.html Or the newcomer full rust: https://crates.io/crates/tracing-rfc-5424
log_level_to_str 🔒
update_log_level
Updates the global log level dynamically.