Function init

Source
pub fn init(server: &str, filter: LevelFilter, topic: &str)
Expand description

Init the kafka logger

§Examples

kafka_logger::init("localhost:9093", log::LevelFilter::Debug, "logging");

log::info!("test");

kafka_logger::shutdown();