PostSharpAPI ReferencePost­Sharp.​Extensibility.​Build­Time­LoggingBuild­Time­LoggerGet­Instance
Open sandboxFocus

BuildTimeLogger.GetInstance Method

GetInstance(String)

Gets a BuildTimeLogger for a given category, or null if logging is not enabled for this category.

Declaration
public static BuildTimeLogger GetInstance(string category)
Parameters
Type Name Description
System.String category

The name of the category.

Returns
Type Description
BuildTimeLogger

A BuildTimeLogger for the category if logging is enabled for the category, otherwise null.