I was delighted by the NDC feature of log4net/log4j as my own tracing framework had the same feature. Its only when I wished to add things like the Smtp and Ado appenders that I choose to switch to ready made library.
 
My question is, how do you format your NDC messages to be easily readable? It seems that by default, different levels of the context stack are not distinguished and allowed to run on into one string. I was thinking of adding a terminator e.g.  | or \\ to my NDC to each message. Is it perhaps assumed that NDC context strings do not contain spaces?
 
Is there something that I'm not understanding here?
 
Thanks,
Duncan

Reply via email to