Trait slog_term::RecordDecorator
source · pub trait RecordDecorator: Write {
// Required method
fn reset(&mut self) -> Result<()>;
// Provided methods
fn start_whitespace(&mut self) -> Result<()> { ... }
fn start_msg(&mut self) -> Result<()> { ... }
fn start_timestamp(&mut self) -> Result<()> { ... }
fn start_level(&mut self) -> Result<()> { ... }
fn start_comma(&mut self) -> Result<()> { ... }
fn start_key(&mut self) -> Result<()> { ... }
fn start_value(&mut self) -> Result<()> { ... }
fn start_location(&mut self) -> Result<()> { ... }
fn start_separator(&mut self) -> Result<()> { ... }
}
Expand description
Per-record decorator
Required Methods§
Provided Methods§
sourcefn start_whitespace(&mut self) -> Result<()>
fn start_whitespace(&mut self) -> Result<()>
Format normal text
sourcefn start_timestamp(&mut self) -> Result<()>
fn start_timestamp(&mut self) -> Result<()>
Format timestamp
sourcefn start_level(&mut self) -> Result<()>
fn start_level(&mut self) -> Result<()>
Format Record
level
sourcefn start_comma(&mut self) -> Result<()>
fn start_comma(&mut self) -> Result<()>
Format a comma between key-value pairs
sourcefn start_value(&mut self) -> Result<()>
fn start_value(&mut self) -> Result<()>
Format a value
sourcefn start_location(&mut self) -> Result<()>
fn start_location(&mut self) -> Result<()>
Format a file location
sourcefn start_separator(&mut self) -> Result<()>
fn start_separator(&mut self) -> Result<()>
Format value
Trait Implementations§
source§impl RecordDecorator for Box<dyn RecordDecorator>
impl RecordDecorator for Box<dyn RecordDecorator>
source§fn start_timestamp(&mut self) -> Result<()>
fn start_timestamp(&mut self) -> Result<()>
Format timestamp
source§fn start_level(&mut self) -> Result<()>
fn start_level(&mut self) -> Result<()>
Format Record
level
source§fn start_comma(&mut self) -> Result<()>
fn start_comma(&mut self) -> Result<()>
Format Record
message
source§fn start_value(&mut self) -> Result<()>
fn start_value(&mut self) -> Result<()>
Format value
source§fn start_location(&mut self) -> Result<()>
fn start_location(&mut self) -> Result<()>
Format file location
source§fn start_separator(&mut self) -> Result<()>
fn start_separator(&mut self) -> Result<()>
Format value
source§fn start_whitespace(&mut self) -> Result<()>
fn start_whitespace(&mut self) -> Result<()>
Format normal text
Implementations on Foreign Types§
source§impl RecordDecorator for Box<dyn RecordDecorator>
impl RecordDecorator for Box<dyn RecordDecorator>
source§fn start_timestamp(&mut self) -> Result<()>
fn start_timestamp(&mut self) -> Result<()>
Format timestamp
source§fn start_level(&mut self) -> Result<()>
fn start_level(&mut self) -> Result<()>
Format Record
level
source§fn start_comma(&mut self) -> Result<()>
fn start_comma(&mut self) -> Result<()>
Format Record
message
source§fn start_value(&mut self) -> Result<()>
fn start_value(&mut self) -> Result<()>
Format value
source§fn start_location(&mut self) -> Result<()>
fn start_location(&mut self) -> Result<()>
Format file location
source§fn start_separator(&mut self) -> Result<()>
fn start_separator(&mut self) -> Result<()>
Format value