|
|
@ -15,6 +15,9 @@ use std::{
|
|
|
|
};
|
|
|
|
};
|
|
|
|
use once_cell::sync::OnceCell;
|
|
|
|
use once_cell::sync::OnceCell;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Print local time by default
|
|
|
|
|
|
|
|
const DEFAULT_USE_LOCAL_TIME: bool = crate::config::build::log::DEFAULT_LOCAL_TIME;
|
|
|
|
|
|
|
|
|
|
|
|
/// Logging level
|
|
|
|
/// Logging level
|
|
|
|
#[derive(PartialEq,Copy,Eq,Debug,Clone,Hash,Ord,PartialOrd)]
|
|
|
|
#[derive(PartialEq,Copy,Eq,Debug,Clone,Hash,Ord,PartialOrd)]
|
|
|
|
pub enum Level
|
|
|
|
pub enum Level
|
|
|
@ -220,7 +223,7 @@ impl Logger
|
|
|
|
Self {
|
|
|
|
Self {
|
|
|
|
level,
|
|
|
|
level,
|
|
|
|
title: String::new(),
|
|
|
|
title: String::new(),
|
|
|
|
use_local_time: false,
|
|
|
|
use_local_time: DEFAULT_USE_LOCAL_TIME,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|