pub struct LoggerConfig { /* private fields */ }
Expand description
Logger configuration.
Implementations§
Source§impl LoggerConfig
impl LoggerConfig
Sourcepub fn build() -> LoggerConfigBuilder
pub fn build() -> LoggerConfigBuilder
Creates a builder for a logger config.
Sourcepub fn target_width(&self) -> usize
pub fn target_width(&self) -> usize
Returns the width of the target section of the LoggerConfig
.
Sourcepub fn level_width(&self) -> usize
pub fn level_width(&self) -> usize
Returns the width of the level section of the LoggerConfig
.
Sourcepub fn outputs(&self) -> &[LoggerOutputConfig]
pub fn outputs(&self) -> &[LoggerOutputConfig]
Returns the outputs of the LoggerConfig
.
Trait Implementations§
Source§impl Clone for LoggerConfig
impl Clone for LoggerConfig
Source§fn clone(&self) -> LoggerConfig
fn clone(&self) -> LoggerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for LoggerConfig
impl RefUnwindSafe for LoggerConfig
impl Send for LoggerConfig
impl Sync for LoggerConfig
impl Unpin for LoggerConfig
impl UnwindSafe for LoggerConfig
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