logo       

RE: NDC in threads?: msg#00057

log.log4net.user

Subject: RE: NDC in threads?

The NDC is thread local and is used to differentiate between actions
happening simultaneously but on different threads. Each thread starts
with a separate empty stack.

Do you need something different?

Nicko

> -----Original Message-----
> From: Oliver Sturm [mailto:oliver@xxxxxxxxxxxx]
> Sent: 14 February 2005 13:29
> To: Log4NET User
> Subject: NDC in threads?
>
> Hey,
>
> I'm wondering: is there a way to log with a specific NDC from
> a thread while the rest of the application uses a different
> NDC (or an empty stack, rather)? It seems to me like the
> current mechanism can only be used to differentiate
> sequential parts of the application, not those which might be
> running in parallel. Is that right? Is there a solution?
>
> Thanks,
>
> Oliver Sturm
> --
> omnibus ex nihilo ducendis sufficit unum Spaces inserted to
> prevent google email destruction:
> MSN oliver @ sturmnet.org Jabber sturm @ amessage.de ICQ
> 27142619 http://www.sturmnet.org/blog
>
>



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise