Function init_logging

Source
pub fn init_logging(config: &LogConfig)
Expand description

Initialize the tracing system with the given configuration

ยงExample

use network_protocol::utils::logging::{LogConfig, init_logging};
use tracing::Level;

let config = LogConfig {
    app_name: "my-service".to_string(),
    log_level: Level::DEBUG,
    ..Default::default()
};

init_logging(&config);