When to use 'nested diagnostic context' (NDC)?

后端 未结 4 768
情深已故
情深已故 2020-12-07 18:46

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 Pat

4条回答
  •  长情又很酷
    2020-12-07 18:59

    In a server application such as ASP.NET.

    For example, you can push information about the current request on to the NDC.

提交回复
热议问题