Struct fern_logger::LoggerOutputConfigBuilder
source · [−]pub struct LoggerOutputConfigBuilder { /* private fields */ }
Expand description
Builder for a logger output configuration.
Implementations
sourceimpl LoggerOutputConfigBuilder
impl LoggerOutputConfigBuilder
sourcepub fn level_filter(self, level: LevelFilter) -> Self
pub fn level_filter(self, level: LevelFilter) -> Self
Sets the level of a logger output.
sourcepub fn target_filters(self, target_filters: &[&str]) -> Self
pub fn target_filters(self, target_filters: &[&str]) -> Self
Sets a collection of filters of a logger output. A message is logged only if one of the filters is part of the log’s metadata target.
sourcepub fn target_exclusions(self, target_exclusions: &[&str]) -> Self
pub fn target_exclusions(self, target_exclusions: &[&str]) -> Self
Sets a collection of exclusions of a logger output. A message is logged only if one of the exclusions is not part of the log’s metadata target.
sourcepub fn color_enabled(self, color: bool) -> Self
pub fn color_enabled(self, color: bool) -> Self
Sets the color flag of a logger output.
sourcepub fn finish(self) -> LoggerOutputConfig
pub fn finish(self) -> LoggerOutputConfig
Builds a logger output configuration.
Trait Implementations
sourceimpl Default for LoggerOutputConfigBuilder
impl Default for LoggerOutputConfigBuilder
sourcefn default() -> LoggerOutputConfigBuilder
fn default() -> LoggerOutputConfigBuilder
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for LoggerOutputConfigBuilder
impl<'de> Deserialize<'de> for LoggerOutputConfigBuilder
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for LoggerOutputConfigBuilder
impl Send for LoggerOutputConfigBuilder
impl Sync for LoggerOutputConfigBuilder
impl Unpin for LoggerOutputConfigBuilder
impl UnwindSafe for LoggerOutputConfigBuilder
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