Yes, it can detect log4j and Jdk14Logger only, this kind of LogKitLogger dettection is not supported at this time. I do not like this kind of "transparent autodetction"(it is more side effect than feature), but it is possible to add LogKitLogger too.
----- Original Message ----- From: "Andreas Guther" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, March 09, 2003 6:28 PM Subject: [commons-logging] Is log4j the only choice if found on the classpath? > Hi: > > I am trying to find out how to define that a specific Logger is used > while using the > commons-logging framework. > > I started to define a commons-logging.properties file and put it on my > applications > classpath. The test properties file looks as follows (BTW: is there a > place in the > API doc where the commons-logging.properties file and all the possible keys > is explained?): > > #org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFa ctoryImpl > > org.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger > #org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JCategor yLog > > #org.apache.commons.logging.Log=org.apache.commons.logging.impl.LogKitLogger > > #org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog > > I appears to me that I can switch between the Jdk14Logger and the > LogKitLogger as long > as no log4j jar file is on the path. As soon as I put log4j-1.2.4.jar > (or log4j.jar > and log4j-core.jar) in addition on the path, changes in the properties > file indicating that > a different logger from log4j should be used, as for example > LogKitLogger, seem > not to be noticed by the commons-logging framework. > > Am I missing something? I would like to be able to switch between all > the three if necessary > without removing log4j jars from the path. > > Andreas > > > --------------------------------------------------------------------- > 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]
