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

Namespace: log4net
Assembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax

public static void Clear()
Remarks

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