PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Backends.​Microsoft Namespace / Microsoft­Logging­Collecting­Logger­Provider Class / Microsoft­Logging­Collecting­Logger­Provider Methods / Microsoft­Logging­Collecting­Logger­Provider.​Create­Logger Method

MicrosoftLoggingCollectingLoggerProvider.CreateLogger Method

Creates a new logger that sends ASP.NET logging events into PostSharp as manual events, under the given log source name.

Namespace:  PostSharp.Patterns.Diagnostics.Backends.Microsoft
Assembly:  PostSharp.Patterns.Diagnostics.Backends.Microsoft (in PostSharp.Patterns.Diagnostics.Backends.Microsoft.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public ILogger CreateLogger(
	string categoryName
)

Parameters

categoryName
Type: System.String
This will be the log source name of the log source created in the PostSharp backend.

Return Value

Type: ILogger
An ASP.NET logger.

Implements

ILoggerProvider.CreateLogger(String)
See Also