Skip to main content

init

Function init 

Source
pub fn init(config: LogConfig)
Expand description

Initialize the global tracing subscriber.

This should be called once at the start of the program. Subsequent calls will be ignored.

§Examples

use rustyclaw::logging::{init, LogConfig};

// Use environment-based configuration
init(LogConfig::from_env());

// Or use explicit configuration
init(LogConfig::debug());