Maybe changing logging to the commons-logging interface would help to overcome this problem. I think this is the preferred interface inside apache.
Someone should figure out how we can reuse our log4j.properties file with the commons-logging interface. Then we could switch the logging.
Isn't log4j the default?
ANYWAY -- THIS IS HOW TO USE THE "default LogFactory implementation class"
The Default LogFactory Implementation of Apache Commons Logging ( org.apache.commons.logging.impl.LogFactoryImpl)uses the following rules:
At most one Log instance of the same name will be created. Subsequent getInstance() calls to the same LogFactory instance, with the same name or Class parameter, will return the same Log instance.
When a new Log instance must be created, the default LogFactory implementation uses the following discovery process is used: (1) Look for a system property named org.apache.commons.logging.Log (for backwards compatibility to pre-1.0 versions of this API, a system property org.apache.commons.logging.log is also consulted). (2) Look for a configuration attribute of this factory named org.apache.commons.logging.Log. (3) HERE IS WHERE LOG4J COMES IN... If the Log4J logging system is available in the application class path, use the corresponding wrapper class ( Log4JCategoryLog).
CAN IGNORE THE REST OF THE OPTIONS SINCE LOG4J BEING USED... If the application is executing on a JDK 1.4 system, use the corresponding wrapper class ( Jdk14Logger). Fall back to the default no-output logging wrapper ( NoOpLog).
... Load the class of the specified name from the thread context class loader (if any), or from the class loader that loaded the LogFactory class otherwise.
Instantiate an instance of the selected Log implementation class, passing the specified name as the single argument to its constructor.
SO I AM NOT SURE WHAT WE WOULD NEED TO DO ABOUT (1) AND (2) IF ANYTHING OR IF IT WILL JUST HAPPILY START AT (3) BUT I THINK USING OUR CURRENT LOG4J.PROPERTIES FILES SHOULD BE NO TROUBLE
ALL INFO FROM http://carbon.sourceforge.net/modules/core/docs/logging/Design.html
-- Shawn
Karma is immutable, so act accordingly!
------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ DbForms Mailing List
http://www.wap-force.net/dbforms