Startup servlet? I have no need for that one - either you name your
property file log4j.properties, or you specify the environment variable
log4j.configuration, and log4j will pick it up by itself.

Thus I have _no_ initialization code for log4j. The only things that are
changed in my code is "import org.apache.log4j.Category;" and "private
static final Category logcat = Category.getInstance(MyClass.class);".
This is precisely what makes log4j superior to all other logging
mechanisms I've yet seen (though I have to admit I don't study them all,
because I'm more than content with log4j).

tomK


> -----Original Message-----
> From: juraj Lenharcik [mailto:[EMAIL PROTECTED]] 
> Sent: donderdag 22 november 2001 11:05
> To: 'Struts Users Mailing List'
> Subject: AW: Log4J and Struts
> 
> 
> i have it in web-inf/classes and will be invoced by a startup servlet.
> 
> -----Ursprüngliche Nachricht-----
> Von: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 22. November 2001 10:30
> An: Struts Users Mailing List
> Betreff: RE: Log4J and Struts
> 
> 
> Somewhere in the classpath. For Tomcat, I put it in
> TOMCAT_HOME/webapps/<myapp>/WEB-INF/classes
> 
> hth,
> tomK
> 
> > -----Original Message-----
> > From: storck [mailto:[EMAIL PROTECTED]] 
> > Sent: donderdag 22 november 2001 9:30
> > To: Struts User (E-Mail)
> > Subject: Log4J and Struts
> > 
> > 
> > Hi,
> > 
> > where must I put the config-file for Log4J so I can use log4j 
> > within struts?
> > 
> > Many thanks!
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > <mailto:struts-user-> [EMAIL PROTECTED]>
> > For 
> > additional commands, 
> > e-mail: <mailto:[EMAIL PROTECTED]>
> > 
> > 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:   
> <mailto:struts-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 

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

Reply via email to