tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luiz Marcelo Serique <marcelo.seri...@gmail.com>
Subject How to DEBUG the new tomcat-jdbc pool?
Date Fri, 03 Feb 2012 17:44:36 GMT
Hi everyone,

I´m trying to log DEBUG info of the org.apache.tomcat.jdbc package.

My system is configured with log4j, just like
http://tomcat.apache.org/tomcat-7.0-doc/logging.html instructions.

I have included a new appender in log4j.properties:

log4j.appender.POOL=org.apache.log4j.DailyRollingFileAppender
log4j.appender.POOL.File=${catalina.base}/logs/pool.log
log4j.appender.POOL.Append=true
log4j.appender.POOL.Encoding=UTF-8
log4j.appender.POOL.DatePattern='.'yyyy-MM-dd'.log'
log4j.appender.POOL.layout = org.apache.log4j.PatternLayout
log4j.appender.POOL.layout.ConversionPattern = %d [%t] %-5p %c- %m%n

And a new log4j.logger:

log4j.logger.org.apache.tomcat.jdbc=DEBUG, POOL

But anything appear in the pool.log file.

Is there anything wrong with this config?

And is possible to log the org.apache.tomcat.jdbc package/

Additional Info:

Tomcat 7.0.23
Windows 2008 64 bits
log4j 1.2.16

--
L. Marcelo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message