RE: Log4j and Java7/JDBC4.1's CommonDataSource.getParentLogger()

2012-01-12 Thread Douglas E Wegscheid
see http://www.slf4j.org/legacy.html you are looking for "SLF4J bound to log4j with redirection of commons-logging and jul calls to SLF4J". See the section on jul-to-slf4j bridge, and the reference to SLF4JBridgeHandler javadocs. I would ask on one of the SLF4J groups for more details, if neede

RE: Log4j and Java7/JDBC4.1's CommonDataSource.getParentLogger()

2012-01-12 Thread BRUNO MELLONI
I am not following. I already have slf4j in my stack (needed by other libraries), although I've written no code that directly interacts with it. I assume that you are telling me to implement getParentLogger() in my datasource (so that it compiles in Java7) and that I should put a couple lines

Re: Log4j and Java7/JDBC4.1's CommonDataSource.getParentLogger()

2012-01-12 Thread Douglas E Wegscheid
I have hit the same situation with software that requires use of Apahce commons logging, I use slf4j (and have it feed log4j); it has adapters to let you log from j.u.l and commons logging. I don't know if it's best practice, but it certainly works. ■ DOUGLAS E. WEGSCHEID // LEAD ENGINEER (269)

Re: log4j in two different project

2012-01-12 Thread Jacob Kjome
On Thu, 12 Jan 2012 10:13:20 -0500  Anjib Mulepati wrote: Hi Is there any help I can get in this?   * Are you log4j.properties files for each project identical?   o No   * the config file for you webapp doesn't provide the configuration you require for your DAO   o How to do this?

Re: log4j in two different project

2012-01-12 Thread Anjib Mulepati
Hi Is there any help I can get in this? * Are you log4j.properties files for each project identical? o No * the config file for you webapp doesn't provide the configuration you require for your DAO o How to do this? What does this mean? * is the DAO project deployed in WEB-INF/li