Class LoggingMiddlewareOptions
- Namespace
- Excalibur.Dispatch.Options.Middleware
- Assembly
- Excalibur.Dispatch.dll
Configuration options for the logging middleware.
public sealed class LoggingMiddlewareOptions
- Inheritance
-
LoggingMiddlewareOptions
- Inherited Members
- Extension Methods
Properties
ExcludeTypes
Gets the set of message types to exclude from logging.
public HashSet<Type> ExcludeTypes { get; }
Property Value
Remarks
Use this to exclude high-frequency or noise messages (e.g., health checks).
FailureLevel
Gets or sets the log level for failed message processing.
public LogLevel FailureLevel { get; set; }
Property Value
IncludePayload
Gets or sets a value indicating whether to include message payload in logs.
public bool IncludePayload { get; set; }
Property Value
Remarks
Setting this to true may expose sensitive data in logs. Consider the security implications before enabling in production.
IncludeTiming
Gets or sets a value indicating whether to include timing information in logs.
public bool IncludeTiming { get; set; }
Property Value
LogCompletion
Gets or sets a value indicating whether to log the completion of message processing.
public bool LogCompletion { get; set; }
Property Value
LogStart
Gets or sets a value indicating whether to log the start of message processing.
public bool LogStart { get; set; }
Property Value
SuccessLevel
Gets or sets the log level for successful message processing.
public LogLevel SuccessLevel { get; set; }
Property Value
- LogLevel
Default is Information.