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
In a server application such as ASP.NET.
For example, you can push information about the current request on to the NDC.