The commons-logging.properties file should be placed in the WEB-INF/classes
directory.  As far as manually stating its location I haven't tried this but
I understand that you can specify a custom logging properties file by using
system property on the command line similar to:

java -Djava.util.logging.config.file=mylogging.properties <class>

I can't answer to item 2 I am using the jdk14logger and then using the java
default logging.properties to turn on/off levels of debugging.  My
commons-properties file is what specifies my implementation.


Peggy


-----Original Message-----
From: Glen Mazza [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 3:46 PM
To: [EMAIL PROTECTED]
Subject: configuring commons-logging/simplelog within Struts

Hello,

I'm having difficulty getting my Struts app (within
Tomcat) to read the commons-logging.properties and
simplelog.properties file.  (I currently just want to
log to stderr, so the simplelog that comes with
commons-logging will do.)

(1) Where should the logging "properties" files be
placed--within the "lib" directory, or in the
"classes" directory?  If I need to manually state its
location, where do I do so within a Struts web app?

(2) Just to confirm, here are my simplelog parameters
I wish to set:

org.apache.commons.logging.simplelog.defaultlog=debug
org.apache.commons.logging.simplelog.showdatetime=true

These parameters should go in the simplelog.properties
file, *not* the commons-logging.properties file--the
latter is just for identifying the underlying
implementation chosen (log4j, simplelog, j2se 1.4,
etc.)--correct?

Thanks,
Glen

_________________________________________________________
Do You Yahoo!?
Informaci�n de Estados Unidos y Am�rica Latina, en Yahoo! Noticias.
Vis�tanos en http://noticias.espanol.yahoo.com

--
To unsubscribe, e-mail:
<mailto:[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