[This is preliminary documentation and is subject to change.]

Gets a value indicating whether logging is enabled for the Debug level.

Namespace:  NLog
Assembly:  NLog (in NLog.dll) Version: 2.0.0.0

Syntax

C#
public bool IsDebugEnabled { get; }
Visual Basic (Declaration)
Public ReadOnly Property IsDebugEnabled As Boolean
Visual C++
public:
property bool IsDebugEnabled {
	bool get ();
}

Return Value

A value of trueTruetruetrue (True in Visual Basic) if logging is enabled for the Debug level, otherwise it returns falseFalsefalsefalse (False in Visual Basic).

See Also