NLog Logging Library

NDC Class

[This is preliminary documentation and subject to change.]

Nested Diagnostics Context - a thread-local structure that keeps a stack of strings and provides methods to output them in layouts Mostly for compatibility with log4net.

For a list of all members of this type, see NDC Members.

System.Object
   NLog.NDC

[Visual Basic]
NotInheritable Public Class NDC
[C#]
public sealed class NDC

Thread Safety

This type is safe for multithreaded operations.

Requirements

Namespace: NLog

Assembly: NLog (in NLog.dll)

See Also

NDC Members | NLog Namespace