PostSharp5.0//API Reference/Post­Sharp.​Patterns.​Diagnostics.​Backends.​Microsoft Namespace/Microsoft­Logging­Backend Class/Microsoft­Logging­Backend Methods/Microsoft­Logging­Backend.​Get­Logger Method

MicrosoftLoggingBackend.GetLogger Method

Gets an ILogger given a category name.

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

Parameters

categoryName
Type: System.String
The name of the category (as returned by GetLoggerName).

Return Value

Type: ILogger
An ILogger whose category name is categoryName.
See Also