pub struct FormatConfig {
pub timestamp_format: String,
pub level_style: LevelStyle,
pub format_template: String,
pub level_templates: Option<LevelTemplates>,
}Expand description
日志格式配置
Fields§
§timestamp_format: String时间戳格式
level_style: LevelStyle日志级别显示样式
format_template: String通用输出模板
level_templates: Option<LevelTemplates>各级别专用模板(为空时使用通用模板)
Trait Implementations§
Source§impl Clone for FormatConfig
impl Clone for FormatConfig
Source§fn clone(&self) -> FormatConfig
fn clone(&self) -> FormatConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FormatConfig
impl Debug for FormatConfig
Source§impl Default for FormatConfig
impl Default for FormatConfig
Source§impl<'de> Deserialize<'de> for FormatConfig
impl<'de> Deserialize<'de> for FormatConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FormatConfig
impl RefUnwindSafe for FormatConfig
impl Send for FormatConfig
impl Sync for FormatConfig
impl Unpin for FormatConfig
impl UnsafeUnpin for FormatConfig
impl UnwindSafe for FormatConfig
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