pub struct LogConfig {
pub level: String,
pub file_path: Option<String>,
pub console_output: bool,
pub verbose: bool,
pub format: LogFormat,
pub rotation: Option<RotationConfig>,
pub highlight: HighlightConfig,
pub filters: Vec<FilterConfig>,
pub custom_fields: HashMap<String, String>,
}Expand description
日志配置结构
Fields§
§level: String日志级别
file_path: Option<String>输出文件路径
console_output: bool是否启用控制台输出
verbose: bool是否启用详细模式
format: LogFormat日志格式
rotation: Option<RotationConfig>文件轮转配置
highlight: HighlightConfig关键词高亮配置
filters: Vec<FilterConfig>过滤器配置
custom_fields: HashMap<String, String>自定义字段
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogConfig
impl RefUnwindSafe for LogConfig
impl Send for LogConfig
impl Sync for LogConfig
impl Unpin for LogConfig
impl UnsafeUnpin for LogConfig
impl UnwindSafe for LogConfig
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