Function init_logging
Source pub fn init_logging(config: LogConfig) -> Result<(), LoggingError>
Expand description
Initialize logging infrastructure
This should be called once at application startup.
§Example
ⓘuse thread_flow::monitoring::logging::{init_logging, LogConfig};
fn main() -> Result<(), Box<dyn std::error::Error>> {
init_logging(LogConfig::default())?;
Ok(())
}