Skip to content

Commit

Permalink
Create test_0_2_6.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
donnie4w committed Nov 4, 2024
1 parent 82e5123 commit bcfe832
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/test_0_2_6.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
use std::{thread, time::Duration};

use tklog::{debug, info, warn, LOG};

#[test]
fn testlogtime() {
LOG.set_console(true);
LOG.set_cutmode_by_time("filetime.log", tklog::MODE::DAY, 0, false);

for _ in 0..1 << 10 {
debug!("debug>>>>", "bbbbbbbbb", 1, 2, 3, 5);
info!("info>>>>", "ccccccccc", 1, 2, 3, 5);
warn!("warn>>>>", "dddddddddd", 1, 2, 3, 6);
thread::sleep(Duration::from_secs(1))
}
}

0 comments on commit bcfe832

Please sign in to comment.