PostSharpLoggingHttpModule()
Initializes a new instance of the PostSharpLoggingHttpModule class with the default AspNetFrameworkRequestMetadata.
Declaration
public PostSharpLoggingHttpModule()PostSharpLoggingHttpModule(LogEventMetadata, Predicate<Uri>, ICorrelationProtocol)
Initializes a new instance of the PostSharpLoggingHttpModule class and specifies a custom LogEventMetadata.
Declaration
protected PostSharpLoggingHttpModule(LogEventMetadata metadata = null, Predicate<Uri> requestFilter = null, ICorrelationProtocol correlationProtocol = null)Parameters
| Type | Name | Description |
|---|---|---|
| LogEventMetadata | metadata | An optional LogEventMetadata, which maps an HttpContext to a set of properties and an expression model. The default implementation is AspNetFrameworkRequestMetadata. You can derive this class if you want to add or remove properties. If you want to change the expression model, you have to derive the generic abstract AspNetFrameworkRequestMetadata<T>. |
| Predicate<Uri> | requestFilter | An optional predicate that determines whether a specific request should be logged. If this parameter is |
| ICorrelationProtocol | correlationProtocol | An optional implementation of ICorrelationProtocol to support
distributed logging and interpret incoming request headers. If this parameter is |