NDCClear Method Apache log4net™ SDK Documentation
Clears all the contextual information held on the current thread.

Namespace: log4net
Assembly: log4net (in log4net.dll) Version: 4.0

public static void Clear()

Note Note

The NDC is deprecated and has been replaced by the Stacks. The current NDC implementation forwards to the ThreadContext.Stacks["NDC"].

Clears the stack of NDC data held on the current thread.

See Also