Module enso_logger::processor[][src]

Expand description

Logger processor implementation.

Modules

Log consumer implementation.

Log formatter implementation.

Structs

A branch processor builder. It passes the incoming input to all of its children. The macro below generates a special type Branch which can accept two or more processors to be connected together. Because it uses default arguments, you are allowed to use it like Branch<P1,P2>, or Branch<P1,P2,P3,P4>.

Consumer processor. It uses the provided consumer to consume the results, and probably print them on the screen or write to a file.

Global processor definition.

Drop processor. Does nothing, just drops the input.

Formatter processor. It uses the provided formatter to format its input.

Identity processor. It passes its input to output without performing any modification.

A seq processor builder. It allows defining connected processors in a linear fashion. The macro below generates a special type Seq which can accept two or more processors to be connected together. Because it uses default arguments, you are allowed to use it like Seq<P1,P2>, or Seq<P1,P2,P3,P4>.

Traits

Abstraction for global processors. Global processors may be insanely useful to optimize the logging performance. You can, for example, define a single global processor and redirect all loggers to it. The single global processor can have a buffer layer, which will buffer messages without formatting them and will format all of them and print them to the screen on-demand only.

The most primitive building block of a logger. Processor takes some input and returns some output, forming a message processing pipeline.

Functions

Get a reference to a global processor. Read docs of GlobalProcessor to learn more.

Type Definitions

A generic seq implementation. See docs of SeqBuilder to learn more.

Nested seq. See docs of SeqBuilder to learn more.

Nested seq. See docs of SeqBuilder to learn more.

Nested seq. See docs of SeqBuilder to learn more.

Nested seq. See docs of SeqBuilder to learn more.

Default processor implementation.

A generic seq implementation. See docs of SeqBuilder to learn more.

Nested seq. See docs of SeqBuilder to learn more.

Nested seq. See docs of SeqBuilder to learn more.

Nested seq. See docs of SeqBuilder to learn more.

Nested seq. See docs of SeqBuilder to learn more.