Class LogProcessor

Assembly: redb.Route.dll

Logs a message for each exchange passing through.
Supports static messages and dynamic expressions via Func.

public class LogProcessor : IProcessor

Inheritance

Object→LogProcessor

Implements

Methods

Process(IExchange, CancellationToken)

Processes the exchange asynchronously.

public Task Process(IExchange exchange, CancellationToken ct = default)

Constructors

LogProcessor(ILogger, Func<IExchange, string>, LogLevel)

Creates a log processor with a dynamic message function.

LogProcessor(ILogger, string, LogLevel)

Creates a log processor with a static message.