PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Adapters.​Asp­Net­CoreAsp­Net­Core­Logging
Open sandboxFocus

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
System.Object
AspNetCoreLogging
Namespace: PostSharp.Patterns.Diagnostics.Adapters.AspNetCore
Assembly: PostSharp.Patterns.Diagnostics.Adapters.AspNetCore.dll
Syntax
public sealed class AspNetCoreLogging : Object

Constructors

Name Description
AspNetCoreLogging()

Methods

Name Description
Initialize(ICorrelationProtocol, Predicate<HttpRequest>, LogEventMetadata)

Instruments the ASP.NET Core stack to define new logging activity (and possibly transactions) for incoming HTTP requests.