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

Constructor from another logger keeping the same path.

Trait Implementations

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

Constructor.

Path that is used as an unique identifier of this logger.

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Write message using the appropriate console method.