pub fn setup_logger(log_thread: bool, rust_log: Option<&str>)
Expand description

setup_logger

Setup a logger for message processing by consumers or producers

Arguments

  • log_thread - flag for logging the processing thread
  • rust_log - string containing the logging level for the function caller

Examples

use rust_with_kafka_tls::log_utils::setup_logger;
setup_logger(true, Some("rdkafka=trace"));