tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Beech <>
Subject RE: Servlets & JSPs log to different files
Date Sat, 02 Aug 2003 00:51:28 GMT

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


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

Then use log4j.

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Rick Roberts []
>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:
>For additional commands, e-mail:

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:
For additional commands, e-mail:

View raw message