Struct sloggers::terminal::TerminalLoggerBuilder
[−]
[src]
pub struct TerminalLoggerBuilder { /* fields omitted */ }
A logger builder which build loggers that output log records to the terminal.
The resulting logger will work asynchronously (the default channel size is 1024).
Methods
impl TerminalLoggerBuilder
[src]
fn new() -> Self
[src]
Makes a new TerminalLoggerBuilder
instance.
fn format(&mut self, format: Format) -> &mut Self
[src]
Sets the format of log records.
fn source_location(&mut self, source_location: SourceLocation) -> &mut Self
[src]
Sets the source code location type this logger will use.
fn timezone(&mut self, timezone: TimeZone) -> &mut Self
[src]
Sets the time zone which this logger will use.
fn destination(&mut self, destination: Destination) -> &mut Self
[src]
Sets the destination to which log records will be outputted.
fn level(&mut self, severity: Severity) -> &mut Self
[src]
Sets the log level of this logger.
fn channel_size(&mut self, channel_size: usize) -> &mut Self
[src]
Sets the size of the asynchronous channel of this logger.