pub fn init_logging(config: &LogConfig) -> Result<(), Error>Expand description
Initialize logging with the given configuration.
This function should be called once at application startup. Subsequent calls will be ignored (returns Ok without error).
§Arguments
config- The logging configuration
§Returns
Ok(())- Logging was initialized successfully or was already initializedErr(Error)- Logging initialization failed
§Example
use mabi_core::logging::{init_logging, LogConfig};
init_logging(&LogConfig::default()).expect("Failed to initialize logging");