PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Adapters.​Asp­Net­Framework Namespace / Post­Sharp­Logging­Http­Module Class

PostSharpLoggingHttpModule Class

An IHttpModule that defines a PostSharp Logging activity (and possibly a transaction) for incoming HTTP requests. This module can be added as such to web.config. It can also be derived in a custom class, which allows to override the LogEventMetadata. The default implementation is AspNetFrameworkRequestMetadata.
Inheritance Hierarchy

Namespace:  PostSharp.Patterns.Diagnostics.Adapters.AspNetFramework
Assembly:  PostSharp.Patterns.Diagnostics.Adapters.AspNetFramework (in PostSharp.Patterns.Diagnostics.Adapters.AspNetFramework.dll) Version: (
public class PostSharpLoggingHttpModule : IHttpModule

The PostSharpLoggingHttpModule type exposes the following members.

Public methodPostSharpLoggingHttpModule()
Initializes a new PostSharpLoggingHttpModule with the default AspNetFrameworkRequestMetadata.
Protected methodPostSharpLoggingHttpModule(LogEventMetadata, Predicate<Uri>, ICorrelationProtocol)
Initializes a new PostSharpLoggingHttpModule and specifies a custom LogEventMetadata.
Public propertyStatic memberCorrelationProtocol
Gets or sets the implementation of ICorrelationProtocol to support distributed logging and interpret incoming request headers.
Public propertyStatic memberRequestFilter
Gets or sets a predicate that determines whether a specific request should be logged. The default implementation filters out the following paths: /js, /css, /lib, /scripts, /content, /favicon.
See Also