G'day,

Can anyone expand on this further and explain how to use a Log4j logger
reference in beans that do not have a notion of what the underlying servlet
context is?  The only way I can see how to get this to work is to pass the
logger reference as an argument in the bean's constructor.  

My query does seem to be out of context for this list so my apologies in
advance.

AB

-----Original Message-----
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Saturday, 2 August 2003 3:24 AM
To: Tomcat Users List
Subject: RE: Servlets & JSPs log to different files



Howdy,
Then use log4j.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Rick Roberts [mailto:[EMAIL PROTECTED]
>Sent: Friday, August 01, 2003 1:18 PM
>To: Tomcat Users List
>Subject: Re: Servlets & JSPs log to different files
>
>>
>>
>> How are you logging in your servlets?  Are you using 
>> System.out/System.err?  If so, don't use them, and instead use the
>> ServletContext#log(..) methods.
>
>Actually, they are mostly beans with no ServletContext :(
>
>--
>*******************************************
>* Rick Roberts                            *
>* Advanced Information Technologies, Inc. *
>*******************************************
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to