Module enso_flexer::prelude::logger::processor[][src]

Expand description

Logger processor implementation.

Modules

consumer

Log consumer implementation.

formatter

Log formatter implementation.

Structs

BranchBuilder

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>.

Buffer
BufferModel
Consumer

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

DefaultGlobalJsProcessor

Global processor definition.

Drop

Drop processor. Does nothing, just drops the input.

Formatter

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

Global
Identity

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

SeqBuilder

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

GlobalProcessor

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.

Processor

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

Functions

global_processor

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

Type Definitions

Branch

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

Branch2

Nested seq. See docs of SeqBuilder to learn more.

Branch3

Nested seq. See docs of SeqBuilder to learn more.

Branch4

Nested seq. See docs of SeqBuilder to learn more.

Branch5

Nested seq. See docs of SeqBuilder to learn more.

DefaultProcessor

Default processor implementation.

Seq

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

Seq2

Nested seq. See docs of SeqBuilder to learn more.

Seq3

Nested seq. See docs of SeqBuilder to learn more.

Seq4

Nested seq. See docs of SeqBuilder to learn more.

Seq5

Nested seq. See docs of SeqBuilder to learn more.