pub struct TextFormatter { /* private fields */ }Expand description
A text formatter that formats log records as text
Trait Implementations§
Source§impl Clone for TextFormatter
impl Clone for TextFormatter
Source§fn clone(&self) -> TextFormatter
fn clone(&self) -> TextFormatter
Returns a copy 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 TextFormatter
impl Debug for TextFormatter
Source§impl Default for TextFormatter
impl Default for TextFormatter
Source§impl FormatterTrait for TextFormatter
impl FormatterTrait for TextFormatter
Source§fn with_colors(self, use_colors: bool) -> Self
fn with_colors(self, use_colors: bool) -> Self
Set whether to use colors
Source§fn with_timestamp(self, include_timestamp: bool) -> Self
fn with_timestamp(self, include_timestamp: bool) -> Self
Set whether to include timestamps
Source§fn with_level(self, include_level: bool) -> Self
fn with_level(self, include_level: bool) -> Self
Set whether to include the log level
Source§fn with_module(self, include_module: bool) -> Self
fn with_module(self, include_module: bool) -> Self
Set whether to include the module path
Source§fn with_location(self, include_location: bool) -> Self
fn with_location(self, include_location: bool) -> Self
Set whether to include the file and line number
Source§fn with_pattern(self, pattern: impl Into<String>) -> Self
fn with_pattern(self, pattern: impl Into<String>) -> Self
Set the format pattern
Source§fn with_format<F>(self, format_fn: F) -> Self
fn with_format<F>(self, format_fn: F) -> Self
Set a custom format function
Auto Trait Implementations§
impl Freeze for TextFormatter
impl !RefUnwindSafe for TextFormatter
impl Send for TextFormatter
impl Sync for TextFormatter
impl Unpin for TextFormatter
impl !UnwindSafe for TextFormatter
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