Function ftlog::builder

source ·
pub fn builder() -> Builder
Expand description

Handy function to get ftlog builder

Examples found in repository?
examples/stderr.rs (line 4)
3
4
5
6
7
8
9
10
11
12
13
fn main() {
    ftlog::builder().try_init().unwrap();

    info!("Hello, world!");
    for i in 0..120 {
        info!("running {}!", i);
        info!(limit=3000i64; "limit running{} !", i);
        std::thread::sleep(std::time::Duration::from_secs(1));
    }
    log::logger().flush();
}