You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-user@logging.apache.org by rodchar <ro...@hotmail.com> on 2009/02/23 22:18:35 UTC
where is threadcontext
hi all,
i was looking at NDC in the log4net SDK and read the following:
The NDC is deprecated and has been replaced by the Stacks. The current NDC
implementation forwards to the ThreadContext.Stacks
But i don't see it when i inspect the log4net namespace.
i'm a noob to log4net please go easy.
thanks,
rodchar
--
View this message in context: http://www.nabble.com/where-is-threadcontext-tp22170366p22170366.html
Sent from the Log4net - Users mailing list archive at Nabble.com.
Re: where is threadcontext
Posted by Ron Grabowski <ro...@yahoo.com>.
The link I posted is for the latest version of log4net:
http://logging.apache.org/log4net/download.html
----- Original Message ----
From: rodchar <ro...@hotmail.com>
To: log4net-user@logging.apache.org
Sent: Monday, February 23, 2009 7:46:52 PM
Subject: Re: where is threadcontext
which version of log4net should we be using? we're using asp.net 2.0 fx
Ron Grabowski wrote:
>
> http://logging.apache.org/log4net/release/manual/contexts.html
>
> using(log4net.ThreadContext.Stacks["NDC"].Push("context"))
> {
> log.Info("Message");
> }
>
> ----- Original Message ----
> From: rodchar <ro...@hotmail.com>
> To: log4net-user@logging.apache.org
> Sent: Monday, February 23, 2009 4:18:35 PM
> Subject: where is threadcontext
>
>
> hi all,
>
> i was looking at NDC in the log4net SDK and read the following:
>
> The NDC is deprecated and has been replaced by the Stacks. The current NDC
> implementation forwards to the ThreadContext.Stacks
>
> But i don't see it when i inspect the log4net namespace.
>
> i'm a noob to log4net please go easy.
>
> thanks,
> rodchar
> --
> View this message in context:
> http://www.nabble.com/where-is-threadcontext-tp22170366p22170366.html
> Sent from the Log4net - Users mailing list archive at Nabble.com.
>
>
--
View this message in context: http://www.nabble.com/where-is-threadcontext-tp22170366p22173638.html
Sent from the Log4net - Users mailing list archive at Nabble.com.
Re: where is threadcontext
Posted by rodchar <ro...@hotmail.com>.
which version should i be using? we're using asp.net 2.0 fx
Ron Grabowski wrote:
>
> http://logging.apache.org/log4net/release/manual/contexts.html
>
> using(log4net.ThreadContext.Stacks["NDC"].Push("context"))
> {
> log.Info("Message");
> }
>
> ----- Original Message ----
> From: rodchar <ro...@hotmail.com>
> To: log4net-user@logging.apache.org
> Sent: Monday, February 23, 2009 4:18:35 PM
> Subject: where is threadcontext
>
>
> hi all,
>
> i was looking at NDC in the log4net SDK and read the following:
>
> The NDC is deprecated and has been replaced by the Stacks. The current NDC
> implementation forwards to the ThreadContext.Stacks
>
> But i don't see it when i inspect the log4net namespace.
>
> i'm a noob to log4net please go easy.
>
> thanks,
> rodchar
> --
> View this message in context:
> http://www.nabble.com/where-is-threadcontext-tp22170366p22170366.html
> Sent from the Log4net - Users mailing list archive at Nabble.com.
>
>
--
View this message in context: http://www.nabble.com/where-is-threadcontext-tp22170366p22173638.html
Sent from the Log4net - Users mailing list archive at Nabble.com.
Re: where is threadcontext
Posted by Ron Grabowski <ro...@yahoo.com>.
http://logging.apache.org/log4net/release/manual/contexts.html
using(log4net.ThreadContext.Stacks["NDC"].Push("context"))
{
log.Info("Message");
}
----- Original Message ----
From: rodchar <ro...@hotmail.com>
To: log4net-user@logging.apache.org
Sent: Monday, February 23, 2009 4:18:35 PM
Subject: where is threadcontext
hi all,
i was looking at NDC in the log4net SDK and read the following:
The NDC is deprecated and has been replaced by the Stacks. The current NDC
implementation forwards to the ThreadContext.Stacks
But i don't see it when i inspect the log4net namespace.
i'm a noob to log4net please go easy.
thanks,
rodchar
--
View this message in context: http://www.nabble.com/where-is-threadcontext-tp22170366p22170366.html
Sent from the Log4net - Users mailing list archive at Nabble.com.