()
| 20 | static CURRENT_LOG_LEVEL: AtomicU8 = AtomicU8::new(level_filter_to_u8(log::LevelFilter::Debug)); |
| 21 | |
| 22 | fn get_thread_id() -> u64 { |
| 23 | let thread_id = thread::current().id(); |
| 24 | let id_str = format!("{:?}", thread_id); |
| 25 | id_str |
| 26 | .trim_start_matches("ThreadId(") |
| 27 | .trim_end_matches(')') |
| 28 | .parse() |
| 29 | .unwrap_or(0) |
| 30 | } |
| 31 | |
| 32 | #[derive(Debug, Clone)] |
| 33 | pub struct LogConfig { |