1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
mod bug_report;
mod debug_config;
mod log;
mod log_util;
mod panic;

#[cfg(feature = "http_report")]
mod http_target;

#[macro_use]
mod check;

pub use crate::log::*;
pub use check::*;
pub use debug_config::*;
pub use log_util::*;
pub use panic::*;

#[cfg(feature = "http_report")]
pub use http_target::*;


#[cfg(test)]
mod tests {
    use crate::*;

    #[test]
    fn test_log() {
        CyfsLoggerBuilder::new_app("test-cyfs-debug")
            .level("trace")
            .console("trace")
            .enable_bdt(Some("warn"), Some("warn"))
            .build()
            .unwrap()
            .start();
    }
}

#[macro_use]
extern crate log as _log;