Class RichLogScopeDefinition

Assembly: redb.Route.dll

Scope-opener definition for rich log output. Collects messages, headers, properties,
and log level. Build content with ,
, , ,
then close with or .

public sealed class RichLogScopeDefinition : ProcessorDefinition, IProcessorDefinition, IRouteScope

Inheritance

Object→ProcessorDefinition→RichLogScopeDefinition

Implements

Inherited Members

Properties

HeaderNames

Header names to include in log output.

public IReadOnlyList<string> HeaderNames { get; }

IncludeRouteId

Whether the route ID is included in log output.

public bool IncludeRouteId { get; }

Level

The log level for all output from this scope.

public LogLevel Level { get; }

MessageFuncs

Dynamic log message factories added via .

public IReadOnlyList<Func<IExchange, string>> MessageFuncs { get; }

Messages

Static log messages added via .

public IReadOnlyList<string> Messages { get; }

PropertyNames

Property names to include in log output.

public IReadOnlyList<string> PropertyNames { get; }

Methods

CreateProcessor(IRouteContext)

Compile this node into a runtime processor.

public override IProcessor CreateProcessor(IRouteContext context)

End()

Closes this scope and returns the parent .

public IRouteDefinition End()

EndLog()

Closes this rich-log scope and returns the parent route definition.

public IRouteDefinition EndLog()

Header(string)

Includes the specified header value in log output.

public RichLogScopeDefinition Header(string headerName)

Message(Func<IExchange, string>)

Adds a dynamic message factory to the log output.

public RichLogScopeDefinition Message(Func<IExchange, string> messageFactory)

Message(string)

Adds a static message to the log output.

public RichLogScopeDefinition Message(string message)

Property(string)

Includes the specified exchange property in log output.

public RichLogScopeDefinition Property(string propertyName)

ShowRouteId(bool)

Includes the route ID in log output.

public RichLogScopeDefinition ShowRouteId(bool value = true)