PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Adapters.​Asp­Net­Core Namespace / Asp­Net­Core­Logging Class

AspNetCoreLogging Class

Instruments the ASP.NET Core stack to define new logging activity (and possibly transactions) for incoming HTTP requests. This is implementation is based on DiagnosticListener and will capture all incoming requests.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Diagnostics.Adapters.AspNetCore.AspNetCoreLogging

Namespace:  PostSharp.Patterns.Diagnostics.Adapters.AspNetCore
Assembly:  PostSharp.Patterns.Diagnostics.Adapters.AspNetCore (in PostSharp.Patterns.Diagnostics.Adapters.AspNetCore.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public sealed class AspNetCoreLogging

The AspNetCoreLogging type exposes the following members.

Constructors
  NameDescription
Public methodAspNetCoreLogging
Initializes a new instance of the AspNetCoreLogging class
Methods
  NameDescription
Public methodStatic memberInitialize
Instruments the ASP.NET Core stack to define new logging activity (and possibly transactions) for incoming HTTP requests.
See Also