Do you have a ConsoleAppender or a FileAppender configured?
Did you add this to your log4j.properties file as was suggested by Ian Zabel?

log4j.logger.java.sql.Connection=DEBUG
log4j.logger.java.sql.Statement=DEBUG
log4j.logger.java.sql.PreparedStatement=DEBUG
log4j.logger.java.sql.ResultSet=DEBUG

Are you sure that your log4j.properties file is in your classpath?

-Richard


Tokajac wrote:
How should I enable JDBC logging, java.sql.Connection logging?

I still haven't solved this part of logging. Any working examples for
IntlliJ IDEA or Eclipse?


Regards

P.S.
I added line:
log4j.logger.com.ibatis.sqlmap.engine.mapping.sql.Sql=DEBUG
to log4j.properties

Reply via email to