PostSharpLoggingHttpModule()
Initializes a new PostSharpLoggingHttpModule with the default AspNetFrameworkRequestMetadata.
Declaration
public PostSharpLoggingHttpModule()
PostSharpLoggingHttpModule(LogEventMetadata, Predicate<Uri>, ICorrelationProtocol)
Initializes a new PostSharpLoggingHttpModule and specifies a custom LogEventMetadata.
Declaration
protected PostSharpLoggingHttpModule(LogEventMetadata metadata = null, Predicate<Uri> requestFilter = null, ICorrelationProtocol correlationProtocol = null)
Parameters
Type | Name | Description |
---|---|---|
LogEventMetadata | metadata |
|
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 |