Struct enso_logger::Logger [−][src]
pub struct Logger<Filter = DefaultFilter, Processor = DefaultProcessor, Levels = DefaultLevels> { /* fields omitted */ }
Expand description
The main logger implementation. It is parametrized by three main types:
- Filter, which is used for compile-time message filtering (zero runtime overhead).
- Processor, which defines a pipeline of what happens to the logged messages. Read the docs of
Processor
to learn more. - Levels, which is a structure defining all possible verbosity levels this logger should handle.
See the
level.rs
module to learn how to define custom verbosity levels.
In order to learn how to use the logger, please refer to the docs in macros.rs
, where a lot
of logging utility macros are defined.
Implementations
Trait Implementations
type Owned = Self
type Owned = Self
The owned type of this logger. As this trait is implemented for logger references, this dependent type just removes the references in this case. Read more
Creates a new logger with this logger as a parent. It can be useful when we need to create a sub-logger for a generic type parameter. Read more
Auto Trait Implementations
impl<Filter = Trace, Processor = SeqBuilder<Formatter<NativeConsole>, SeqBuilder<Consumer<NativeConsole>, SeqBuilder<Identity, SeqBuilder<Identity, Identity>>>>, Levels = DefaultLevels> !RefUnwindSafe for Logger<Filter, Processor, Levels>
impl<Filter = Trace, Processor = SeqBuilder<Formatter<NativeConsole>, SeqBuilder<Consumer<NativeConsole>, SeqBuilder<Identity, SeqBuilder<Identity, Identity>>>>, Levels = DefaultLevels> !Send for Logger<Filter, Processor, Levels>
impl<Filter = Trace, Processor = SeqBuilder<Formatter<NativeConsole>, SeqBuilder<Consumer<NativeConsole>, SeqBuilder<Identity, SeqBuilder<Identity, Identity>>>>, Levels = DefaultLevels> !Sync for Logger<Filter, Processor, Levels>
impl<Filter, Processor, Levels> Unpin for Logger<Filter, Processor, Levels> where
Filter: Unpin,
Levels: Unpin,
impl<Filter = Trace, Processor = SeqBuilder<Formatter<NativeConsole>, SeqBuilder<Consumer<NativeConsole>, SeqBuilder<Identity, SeqBuilder<Identity, Identity>>>>, Levels = DefaultLevels> !UnwindSafe for Logger<Filter, Processor, Levels>
Blanket Implementations
Mutably borrows from an owned value. Read more
type RefValue = T
type Output = T
type Output = T
Should always be Self
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.