I have been trying to configure my Struts 1.1 application to use a custom
logger that wraps log4j.
I implemented a Logger class that implements the commons Log interface.  
I created a commons-logging.properties file and placed it in the
WEB-INF/classes directory.
It contains the properties:
org.apache.commons.logging.Log=com.myaap.Logger
org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFac
toryImpl

I still only get the commons SimpleLog.  I am deploying my application to
tomcat 3.3.1.  What have I missed or not understand?

Regards,

Chris

> -----Original Message-----
> From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 19, 2003 8:20 AM
> To: Struts Users Mailing List
> Subject: RE: question about logging
> 
> 
> Struts itself uses commons logging.  So you can simply 
> include the necessary jars from commons logging and say, 
> log4j/jdk1.4 in conjunction with the respective properties 
> files in your classpath to control how the messages are 
> output.  You can learn a lot more about it at 
> http://jakarta.apache.org/log4j/docs/index.html.
> 
> Of course, you can use the same technique to control and 
> configure log messages generated by your application.
> 
> Sri
> 

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

Reply via email to