[jboss-user] [JCA/JBoss] - Re: ManagedConnectionFactory.setLogger
do-not-reply at jboss.com
Fri Jan 25 10:25:39 EST 2008
"iit" wrote : And, by the way, here is a snippet from the javadocs of http://java.sun.com/j2ee/1.4/docs/api/javax/resource/spi/ManagedConnectionFactory.html#setLogWriter(java.io.PrintWriter)
| When a ManagedConnectionFactory object is created the log writer is initially null, in other words, logging is disabled. Once a log writer is associated with a ManagedConnectionFactory, logging and tracing for ManagedConnectionFactory instance is enabled.
| So if you set it, logging is enabled. And that's WRONG!
And the bit you didn't quote...
which can be overridden by ApplicationServer using ManagedConnection.setLogWriter to set ManagedConnection specific logging and tracing.
Which on JBoss is log4j configuration by default.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123531#4123531
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123531
More information about the jboss-user