Crate enso_logger[][src]

Expand description

Extensible logger implementation.

Re-exports

pub use enso_prelude as prelude;
pub use entry::message::Message;

Modules

Logger entry. Entry can contain message, grouping, time information, etc.

Utilities for easy logger usage. Defines such macros as debug! or warning!.

Logger processor implementation.

Macros

Internal utility for logging macros.

$tp_name logging macro.

Defines specialized version of compile time filtering rules for the given filtering levels. It defines specialized implementations for the default implementation above. See the usage below to learn more.

Define a global processor based on the provided type. Read the docs of GlobalProcessor to learn more.

Utility for defining verbosity levels. Each verbosity level is defined as a separate structure. Moreover, it will also define a module filter_from containing similar structures, which will be useful for compile time filtering. The meaning of filter_from::Warning is meant to be “keep every message with priority higher or equal to warning”.

Group levels defined with define_levels (possibly several, possibly merging user-defined types) into a common structure for logger parametrization. Also, defines a generic formatter impl for the type, which redirects calls to more specific instances.

$tp_name logging macro.

$tp_name logging macro.

Internal utility for logging macros.

Internal utility for logging macros.

$tp_name logging macro.

$tp_name logging macro.

Structs

The main logger implementation. It is parametrized by three main types:

Traits

A common interface for all loggers. Exposing all information needed to create a particular sub-logger from a given parent logger of any type.

Primitive operations on a logger. The type parameter allows for compile-time log level filtering of the messages.

Type Definitions

A logger which compile-time filters out all messages with log levels smaller than $tp.

The same as $name, but with all type arguments applied, for convenient usage.

The same as $name, but with all type arguments applied, for convenient usage.

The same as $name, but with all type arguments applied, for convenient usage.

The same as $name, but with all type arguments applied, for convenient usage.

The same as $name, but with all type arguments applied, for convenient usage.

A logger which compile-time filters out all messages with log levels smaller than $tp.

A logger which compile-time filters out all messages with log levels smaller than $tp.

A logger which compile-time filters out all messages with log levels smaller than $tp.

A logger which compile-time filters out all messages with log levels smaller than $tp.