Skip to main content

init_logging

Function init_logging 

Source
pub fn init_logging(config: &LogConfig) -> Result<LoggingGuards>
Expand description

Initialize tracing-based logging for the current process.

Returns guards that must be kept alive for the duration of the program (particularly when file logging is enabled).