feat: event based non-blocking logger

This commit is contained in:
Chance 2025-04-15 20:08:58 +00:00 committed by BitSyndicate
parent 37abc3f52d
commit f215c10d0e
Signed by: bitsyndicate
GPG key ID: 443E4198D6BBA6DE
8 changed files with 534 additions and 671 deletions

View file

@ -0,0 +1,14 @@
use std::time::SystemTime;
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Default)]
pub enum LogQuery {
#[default]
All,
From(SystemTime),
}
impl LogQuery {
pub fn since(time: SystemTime) -> Self {
LogQuery::From(time)
}
}