ecat-logging 3.0.3

Structured logging via tracing for e-cat
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (c) 2026 erik <erik@erik.xyz> — https://erik.xyz
// 统一入口:subscriber 安装收敛到 ecat-tracing::init,此处保持向后兼容的
// 无参签名(ecat::App::run 调用)。
pub fn init() {
    ecat_tracing::init("ecat");
}

#[cfg(test)]
mod tests {
    #[test]
    fn init_does_not_panic() {
        // init may fail if called more than once per process, but it must not panic
        let result = std::panic::catch_unwind(super::init);
        assert!(result.is_ok());
    }
}