Thanks for the reply
I've read that article but it doesn't solve my problem. I want to have a different
logger for each webapplication. And i think that initservlet is suppose to log for
all webapplications. My other problem with that init servlet is why it doesn't contain
the code i'm currently using in my servlet e.g :
private static Logger logg = Logger.getLogger(BidServletProxy.class);
URL configFileResource = BidServerProxy.class.getResource("/log.xml");
DOMConfigurator.configure(configFileResource.getFile());
This how it's set up now in my servlet and it works fine. My question is, how can i
use the same logger for my jsp residing in the same webapp ?
Abid
-----Original Message-----
From: Winifred Sanchez [mailto:[EMAIL PROTECTED]
Sent: 17. juli 2003 16:18
To: [EMAIL PROTECTED]
Subject: Re: Log4j initalized in each JSP ??
Hi
There's a sample initialization servlet in
http://jakarta.apache.org/log4j/docs/manual.html. It runs when tomcat is
started and there is no need to initialize log4j for every servlet. I guess
it should also work for jsps.
Regards,
Winz
>From: "Abid Ali Teepo" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Subject: Log4j initalized in each JSP ??
>Date: Thu, 17 Jul 2003 14:33:06 +0200
>
>Hi
>
>I've set up some logging for my main servlet, and it appears to be working
>good. Now i need to set up logging for the JSP's in my application, and i'm
>a little bit confused .... because i don't think i should be initializing
>and defining my logger for each jsp-page ?? That sunds a bit overkill ....
>anyone have suggestions as to how i can organize it .... and what code
>should go in each jsp ? Maybe some pointers ?
>
>Regards
>Abid
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
---------------------------------------------------------------------
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]