PostSharp6.3/API Reference/Post­Sharp.​Extensibility.​Build­Time­Logging Namespace/Build­Time­Logger Class/Build­Time­Logger Methods/Build­Time­Logger.​Get­Instance Method

BuildTimeLogger.GetInstance Method

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

Namespace:  PostSharp.Extensibility.BuildTimeLogging
Assembly:  PostSharp (in PostSharp.dll) Version: 6.3.11.0 (6.3.11.0)
Syntax
C#
public static BuildTimeLogger GetInstance(
	string category
)

Parameters

category
Type: System.String
The name of the category.

Return Value

Type: BuildTimeLogger
A BuildTimeLogger for the category if logging is enabled for the category, otherwise null.
See Also