[−][src]Struct sloggers::terminal::TerminalLoggerBuilder
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).
Implementations
impl TerminalLoggerBuilder
[src]
pub fn new() -> Self
[src]
Makes a new TerminalLoggerBuilder
instance.
pub fn format(&mut self, format: Format) -> &mut Self
[src]
Sets the format of log records.
pub fn source_location(&mut self, source_location: SourceLocation) -> &mut Self
[src]
Sets the source code location type this logger will use.
pub fn overflow_strategy(
&mut self,
overflow_strategy: OverflowStrategy
) -> &mut Self
[src]
&mut self,
overflow_strategy: OverflowStrategy
) -> &mut Self
Sets the overflow strategy for the logger.
pub fn timezone(&mut self, timezone: TimeZone) -> &mut Self
[src]
Sets the time zone which this logger will use.
pub fn destination(&mut self, destination: Destination) -> &mut Self
[src]
Sets the destination to which log records will be outputted.
pub fn level(&mut self, severity: Severity) -> &mut Self
[src]
Sets the log level of this logger.
pub fn channel_size(&mut self, channel_size: usize) -> &mut Self
[src]
Sets the size of the asynchronous channel of this logger.
pub fn kvfilter(&mut self, parameters: KVFilterParameters) -> &mut Self
[src]
Sets KVFilter
.
Trait Implementations
impl Build for TerminalLoggerBuilder
[src]
impl Debug for TerminalLoggerBuilder
[src]
impl Default for TerminalLoggerBuilder
[src]
Auto Trait Implementations
impl !RefUnwindSafe for TerminalLoggerBuilder
impl Send for TerminalLoggerBuilder
impl Sync for TerminalLoggerBuilder
impl Unpin for TerminalLoggerBuilder
impl UnwindSafe for TerminalLoggerBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,