Struct ConfigurableFormat
pub struct ConfigurableFormat { /* private fields */ }
A [custom format][crate::Builder::format] with settings for which fields to show
Implementations
impl ConfigurableFormat
fn format(&self, formatter: &mut Formatter, record: &Record<'_>) -> Result<()>Format the
Recordas configured for outputting
impl ConfigurableFormat
fn level(&mut self, write: bool) -> &mut SelfWhether or not to write the level in the default format.
fn file(&mut self, write: bool) -> &mut SelfWhether or not to write the source file path in the default format.
fn line_number(&mut self, write: bool) -> &mut SelfWhether or not to write the source line number path in the default format.
Only has effect if
format_fileis also enabledfn module_path(&mut self, write: bool) -> &mut SelfWhether or not to write the module path in the default format.
fn target(&mut self, write: bool) -> &mut SelfWhether or not to write the target in the default format.
fn indent(&mut self, indent: Option<usize>) -> &mut SelfConfigures the amount of spaces to use to indent multiline log records. A value of
Nonedisables any kind of indentation.fn timestamp(&mut self, timestamp: Option<TimestampPrecision>) -> &mut SelfConfigures if timestamp should be included and in what precision.
fn suffix(&mut self, suffix: &'static str) -> &mut SelfConfigures the end of line suffix.
Trait Implementations
impl Default for ConfigurableFormat
fn default() -> Self