PostSharp 6.9 / / 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
System.Object
  PostSharp.Patterns.Diagnostics.Adapters.AspNetFramework.PostSharpLoggingHttpModule

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

The PostSharpLoggingHttpModule type exposes the following members.

Constructors
  NameDescription
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.
Properties
  NameDescription
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