PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Backends.​MicrosoftMicrosoft­Logging­Collecting­Logger­ProviderCreate­Logger
Open sandboxFocus

MicrosoftLoggingCollectingLoggerProvider.CreateLogger Method

CreateLogger(String)

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

Declaration
public ILogger CreateLogger(string categoryName)
Parameters
Type Name Description
String categoryName

This will be the log source name of the log source created in the PostSharp backend.

Returns
Type Description
ILogger

An ASP.NET logger.