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 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 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(&mut self, use_colors: bool)
fn with_colors(&mut self, use_colors: bool)
Enable or disable colored output
Source§fn with_timestamp(&mut self, include_timestamp: bool)
fn with_timestamp(&mut self, include_timestamp: bool)
Enable or disable timestamp output
Source§fn with_level(&mut self, include_level: bool)
fn with_level(&mut self, include_level: bool)
Enable or disable level output
Source§fn with_module(&mut self, include_module: bool)
fn with_module(&mut self, include_module: bool)
Enable or disable module output
Source§fn with_location(&mut self, include_location: bool)
fn with_location(&mut self, include_location: bool)
Enable or disable location output
Source§fn with_pattern(&mut self, _pattern: String)
fn with_pattern(&mut self, _pattern: String)
Set the pattern for formatting
Source§fn with_format(&mut self, format_fn: FormatFn)
fn with_format(&mut self, format_fn: FormatFn)
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