Hm, I've had log4j.logger.com.ibatis in my log4j.properties for a while, but I just
realized that I don't actually get any log output from ibatis classes... getting the
java.sql logging has always been good enough.
I wonder if this has anything to do with the fact that ibatis has it's own commons logging
clone... anyone know what's up with that?
b
Tarek Nabil wrote:
Hi,
I followed every advise out there to enable iBatis logging, it simple
does not work! :( I'm getting tons of logs from every framework I'm
using, except for iBatis.
I tried all the different configurations. Below is my current one. I can
see everything coming from java.sql, but NOTHING from com.ibatis.
Pleeeeeeease help.
# Set root logger level to DEBUG (change to info on production) and its
appenders to Console and RollingFile
log4j.rootLogger=TRACE, RollingFile
# SqlMap logging configuration
log4j.logger.com.ibatis=DEBUG
log4j.logger.java.sql=DEBUG
log4j.logger.org.springframework=INFO
# RollingFile is set to be a RollingFileAppender
log4j.appender.RollingFile=org.apache.log4j.RollingFileAppender
log4j.appender.RollingFile.File=c:/customs.log
log4j.appender.RollingFile.Encoding=UTF-8
log4j.appender.RollingFile.MaxFileSize=20MB
log4j.appender.RollingFile.Threshold=TRACE
# Number of backup files
log4j.appender.RollingFile.MaxBackupIndex=9
log4j.appender.RollingFile.layout=org.apache.log4j.PatternLayout
log4j.appender.RollingFile.layout.ConversionPattern=%-5p %c %d{ISO8601}
%m %n
********************************************DISCLAIMER********************************************
This email and any files transmitted with it are confidential and contain privileged or copyright
information. If you are not the intended recipient you must not copy, distribute or use this email
or the information contained in it for any purpose other than to notify us of
the receipt thereof.
If you have received this message in error, please notify the sender
immediately, and delete this
email from your system.
Please note that e-mails are susceptible to change.The sender shall not be
liable for the improper
or incomplete transmission of the information contained in this
communication,nor for any delay in
its receipt or damage to your system.The sender does not guarantee that this
material is free from
viruses or any other defects although due care has been taken to minimise the
risk.
**************************************************************************************************