Class LoggingMiddlewareOptions
- Namespace
- WorkflowForge.Options.Middleware
- Assembly
- WorkflowForge.dll
Configuration options for logging middleware. Controls logging behavior and verbosity. Zero-dependency POCO for configuration binding.
public sealed class LoggingMiddlewareOptions : WorkflowForgeOptionsBase, ICloneable
- Inheritance
-
LoggingMiddlewareOptions
- Implements
- Inherited Members
Constructors
LoggingMiddlewareOptions()
Initializes a new instance with default section name.
public LoggingMiddlewareOptions()
LoggingMiddlewareOptions(string)
Initializes a new instance with custom section name.
public LoggingMiddlewareOptions(string sectionName)
Parameters
sectionNamestringCustom configuration section name.
Fields
DefaultSectionName
Default configuration section name for binding from appsettings.json. This is the default value; users can specify a custom section name when binding.
public const string DefaultSectionName = "WorkflowForge:Middleware:Logging"
Field Value
Properties
LogDataPayloads
Gets or sets whether to log operation input/output data. When true, includes data payloads in log messages (can be very verbose). When false, only logs operation names and execution context. Default is false.
public bool LogDataPayloads { get; set; }
Property Value
MinimumLevel
Gets or sets the minimum log level for the per-operation trace messages this middleware emits. Operation failures are always logged regardless of this setting. Valid values: Trace, Debug, Information, Warning, Error, Critical. This setting works in conjunction with your logging provider's configuration. Default is Information, which suppresses the per-operation trace messages.
public string MinimumLevel { get; set; }
Property Value
Methods
Clone()
Creates a deep copy of this options instance.
public override object Clone()
Returns
- object
A new instance with the same configuration values.
Validate()
Validates the options configuration and returns a list of validation errors.
public override IList<string> Validate()