pub struct LogFormat {
pub time_format: String,
pub show_file: bool,
pub show_line: bool,
pub show_module: bool,
pub template: Option<String>,
}Expand description
日志格式配置
Fields§
§time_format: String时间格式
show_file: bool是否显示文件名
show_line: bool是否显示行号
show_module: bool是否显示模块路径
template: Option<String>自定义格式模板
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogFormat
impl RefUnwindSafe for LogFormat
impl Send for LogFormat
impl Sync for LogFormat
impl Unpin for LogFormat
impl UnsafeUnpin for LogFormat
impl UnwindSafe for LogFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more