MDCClear Method Apache log4net™ SDK Documentation
Clear all entries in the MDC

Namespace: log4net
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

public static void Clear()
Remarks

Note Note

The MDC is deprecated and has been replaced by the Properties. The current MDC implementation forwards to the ThreadContext.Properties.

Remove all the entries from this thread's MDC

See Also

Reference