You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by "Ravishankar, Narayanan Nair" <ra...@crimsonlogic.com> on 2005/03/02 03:48:22 UTC
Regarding Use of MDC/NDC
Hi all,
A newbie here, trying to make use of MDC/NDC. I have a simple servlet to
experiment
public class myservlet .....
{
PrintWriter pwr = res.getWriter();
//logging statement
Pwr.println("Hello World");
}
What should I do in order to keep track of different requests ? What I
need to add in the above code ? Not sure of how to proceed, can anyone
please help/advise, thanks a lot for your time and patience.
Best regards,
Ravi
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Regarding Use of MDC/NDC
Posted by Ana Paula Brandão Lopes <ap...@yahoo.com.br>.
Read this:
http://www.onjava.com/pub/a/onjava/2002/08/07/log4j.html?page=1
Go to page 3 and enjoy.
Ana
On Wed, 2 Mar 2005 10:48:22 +0800, Ravishankar, Narayanan Nair
<ra...@crimsonlogic.com> wrote:
>
> Hi all,
>
> A newbie here, trying to make use of MDC/NDC. I have a simple servlet to
> experiment
>
> public class myservlet .....
> {
> PrintWriter pwr = res.getWriter();
> //logging statement
> Pwr.println("Hello World");
>
> }
>
> What should I do in order to keep track of different requests ? What I
> need to add in the above code ? Not sure of how to proceed, can anyone
> please help/advise, thanks a lot for your time and patience.
>
> Best regards,
> Ravi
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org