pub struct TermProcessor { /* private fields */ }Expand description
终端日志处理器 - 实现LogProcessor trait
Implementations§
Source§impl TermProcessor
impl TermProcessor
Sourcepub fn with_config(config: TermConfig) -> Self
pub fn with_config(config: TermConfig) -> Self
使用配置创建终端处理器
Sourcepub fn with_formatter<F>(self, formatter: F) -> Self
pub fn with_formatter<F>(self, formatter: F) -> Self
设置自定义格式化函数
Sourcepub fn with_format(self, format_config: FormatConfig) -> Self
pub fn with_format(self, format_config: FormatConfig) -> Self
使用格式配置
Sourcepub fn with_format_and_color(
self,
format_config: FormatConfig,
color_config: ColorConfig,
) -> Self
pub fn with_format_and_color( self, format_config: FormatConfig, color_config: ColorConfig, ) -> Self
使用格式配置和颜色配置
Trait Implementations§
Source§impl Drop for TermProcessor
impl Drop for TermProcessor
Source§impl LogProcessor for TermProcessor
impl LogProcessor for TermProcessor
Auto Trait Implementations§
impl Freeze for TermProcessor
impl !RefUnwindSafe for TermProcessor
impl Send for TermProcessor
impl Sync for TermProcessor
impl Unpin for TermProcessor
impl !UnwindSafe for TermProcessor
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