I don't understand the question. By specific NDC context do you mean
you're using nested using() statements?

using(ThreadContext.Stacks["NDC"].Push("first push"))
{
 using(ThreadContext.Stacks["NDC"].Push("second push"))
 {
  log.Info("This log message has two NDC entires");
 }
 log.Info("This log message has one NDC entry");
}

--- Morten Andersen <[EMAIL PROTECTED]> wrote:

> Can I configure log4net to route messages from a specific NDC context
> to 
> a appender?
> 
> - Morten
> 

Reply via email to