Class RichLogScopeDefinition
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
Implements
Inherited Members
Properties
MessageFuncs
Dynamic log message factories added via .
public IReadOnlyList<Func<IExchange, string>> MessageFuncs { 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)
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)