log4net - When to use 'nested diagnostic context' (NDC)?
Playing with log4net, I have seen the possibility to use a per-thread stack of context labels called the NDC. The labels pushed on this stack are displayed in a PatternLayout by specifying the %x or the %ndc format parameter. The usage is something like: ILog log = log4net.LogManager.GetLogger(...) ; //pattern layout format: "[%ndc...