question about logging

2003-02-19 Thread Vladislav Kamensky
Hi,

how can I configure struts in oder to print log messages into file but not on console ?


Vlad.




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




RE: question about logging

2003-02-19 Thread Sri Sankaran
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

-Original Message-
From: Vladislav Kamensky [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 19, 2003 8:00 AM
To: [EMAIL PROTECTED]
Subject: question about logging


Hi,

how can I configure struts in oder to print log messages into file but not on console ?


Vlad.




-
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]




RE: question about logging

2003-02-19 Thread Stillwell, Chris
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]