std_out_single_thread_big_buf_capacity/
big-buf-capacity.rs

1use rslogger::Logger;
2use log::{info, warn, error};
3
4fn main() {
5    Logger::new()
6        .with_level(log::LevelFilter::Trace)
7        .with_local_timestamps()
8        .add_writer_stdout(false, Some(1000))
9        .init().unwrap();
10
11    info!("This is a info test");
12    warn!("This is a warn test");
13    error!("This is an error test");
14
15    // In this case, if we remove this line, we would not see the traces
16    // You can try it.
17    // This is because the flush method is not called automatically
18    log::logger().flush();
19}