pub fn start_logger(config: &AppConfig, sinks: Vec<Arc<dyn Sink>>) -> Logger
Expand description
Start the log module This function starts the log module. It initializes the logger and starts the worker to process logs.
§Parameters
config
: Configuration informationsinks
: A vector of Sink instances
§Returns
The global logger instance
§Example
use rustfs_obs::{AppConfig, start_logger};
let config = AppConfig::default();
let sinks = vec![];
let logger = start_logger(&config, sinks);