pub struct FullFormatterBuilder(/* private fields */);Implementations§
Source§impl FullFormatterBuilder
impl FullFormatterBuilder
Sourcepub fn time(&mut self, value: bool) -> &mut Self
pub fn time(&mut self, value: bool) -> &mut Self
Specify whether to enable time field.
Example of this field: [2022-11-02 09:23:12.263]
Sourcepub fn logger_name(&mut self, value: bool) -> &mut Self
pub fn logger_name(&mut self, value: bool) -> &mut Self
Specify whether to enable logger name field.
Example of this field: [logger-name]
Sourcepub fn level(&mut self, value: bool) -> &mut Self
pub fn level(&mut self, value: bool) -> &mut Self
Specify whether to enable level field.
Note that disabling this field will also remove the style from the formatted result.
Example of this field: [info]
Sourcepub fn source_location(&mut self, value: bool) -> &mut Self
pub fn source_location(&mut self, value: bool) -> &mut Self
Specify whether to enable source location field.
Example of this field: [mod::path, src/main.rs:4]
Sourcepub fn kv(&mut self, value: bool) -> &mut Self
pub fn kv(&mut self, value: bool) -> &mut Self
Specify whether to enable kv field.
Example of this field: { key1=value1 key2=value2 }
Sourcepub fn eol(&mut self, value: bool) -> &mut Self
pub fn eol(&mut self, value: bool) -> &mut Self
Specify whether to enable eol field.
Example of this field: \n or \r\n on Windows.
Sourcepub fn build(&mut self) -> FullFormatter
pub fn build(&mut self) -> FullFormatter
Builds a FullFormatter.
Auto Trait Implementations§
impl Freeze for FullFormatterBuilder
impl RefUnwindSafe for FullFormatterBuilder
impl Send for FullFormatterBuilder
impl Sync for FullFormatterBuilder
impl Unpin for FullFormatterBuilder
impl UnwindSafe for FullFormatterBuilder
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more