pub struct ConfigurableFormat { /* private fields */ }
Expand description
A custom format with settings for which fields to show
Implementations§
Source§impl ConfigurableFormat
impl ConfigurableFormat
Sourcepub fn level(&mut self, write: bool) -> &mut Self
pub fn level(&mut self, write: bool) -> &mut Self
Whether or not to write the level in the default format.
Sourcepub fn file(&mut self, write: bool) -> &mut Self
pub fn file(&mut self, write: bool) -> &mut Self
Whether or not to write the source file path in the default format.
Sourcepub fn line_number(&mut self, write: bool) -> &mut Self
pub fn line_number(&mut self, write: bool) -> &mut Self
Whether or not to write the source line number path in the default format.
Only has effect if format_file
is also enabled
Sourcepub fn module_path(&mut self, write: bool) -> &mut Self
pub fn module_path(&mut self, write: bool) -> &mut Self
Whether or not to write the module path in the default format.
Sourcepub fn target(&mut self, write: bool) -> &mut Self
pub fn target(&mut self, write: bool) -> &mut Self
Whether or not to write the target in the default format.
Sourcepub fn indent(&mut self, indent: Option<usize>) -> &mut Self
pub fn indent(&mut self, indent: Option<usize>) -> &mut Self
Configures the amount of spaces to use to indent multiline log records.
A value of None
disables any kind of indentation.
Sourcepub fn timestamp(&mut self, timestamp: Option<TimestampPrecision>) -> &mut Self
pub fn timestamp(&mut self, timestamp: Option<TimestampPrecision>) -> &mut Self
Configures if timestamp should be included and in what precision.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConfigurableFormat
impl RefUnwindSafe for ConfigurableFormat
impl Send for ConfigurableFormat
impl Sync for ConfigurableFormat
impl Unpin for ConfigurableFormat
impl UnwindSafe for ConfigurableFormat
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