Struct fern_logger::LoggerConfig
source · [−]pub struct LoggerConfig { /* private fields */ }
Expand description
Logger configuration.
Implementations
sourceimpl 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
sourceimpl Clone for LoggerConfig
impl Clone for LoggerConfig
sourcefn clone(&self) -> LoggerConfig
fn clone(&self) -> LoggerConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for LoggerConfig
impl Default for LoggerConfig
sourceimpl PartialEq<LoggerConfig> for LoggerConfig
impl PartialEq<LoggerConfig> for LoggerConfig
sourcefn eq(&self, other: &LoggerConfig) -> bool
fn eq(&self, other: &LoggerConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LoggerConfig) -> bool
fn ne(&self, other: &LoggerConfig) -> bool
This method tests for !=
.
impl StructuralPartialEq for LoggerConfig
Auto Trait Implementations
impl RefUnwindSafe for LoggerConfig
impl Send for LoggerConfig
impl Sync for LoggerConfig
impl Unpin for LoggerConfig
impl UnwindSafe for LoggerConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more