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

MicrosoftLoggingBackend.GetLogger Method

GetLogger(String)

Gets an ILogger given a category name.

Declaration
public ILogger GetLogger(string categoryName)
Parameters
Type Name Description
System.String categoryName

The name of the category (as returned by GetLoggerName).

Returns
Type Description
ILogger

An ILogger whose category name is categoryName.