NLog Logging Library

LogManager.EnableLogging Method 

[This is preliminary documentation and subject to change.]

Increases the log enable counter and if it reaches 0 the logs are disabled.

[Visual Basic]
Public Shared Sub EnableLogging()
[C#]
public static void EnableLogging();

Remarks

Logging is enabled if the number of EnableLogging calls is greater than or equal to DisableLogging calls.

See Also

LogManager Class | NLog Namespace