ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From radha rukmani <radharukm...@yahoo.com>
Subject Re: how to turn of logging when ibatis runs the query
Date Thu, 04 May 2006 16:45:50 GMT

My log4j property file looks like this, it does not have anything related to ibatis.
   
  log4j.appender.A1.layout=org.apache.log4j.PatternLayout
  log4j.appender.A1.layout.ConversionPattern=%d %-5p [%t] %-17c{2} (%13F:%L) %3x - %m%n
  log4j.appender.A2=org.apache.log4j.RollingFileAppender
  log4j.appender.A2.File=${java.io.tmpdir}/SubLog.log
  log4j.appender.A2.MaxFileSize=1MB
  log4j.appender.A2.MaxBackupIndex=1000
  log4j.appender.A2.Append=true
  log4j.appender.A2.layout=org.apache.log4j.PatternLayout
  log4j.appender.A2.layout.ConversionPattern=%d %-5p [%t] %c{2} (%13F:%L) - %m%n
  log4j.appender.A1.layout.ConversionPattern=%d %-5p [%t] %-17c{2} (%13F:%L) %3x - %m%n
   
  
Sven Boden <list123@pandora.be> wrote:
  
Default it should be off... find the log4j.properties and tweak the 
following:

# Global logging configuration
log4j.rootLogger=ERROR, stdout

# SqlMap logging configuration...
#log4j.logger.com.ibatis=DEBUG
#log4j.logger.com.ibatis.common.jdbc.SimpleDataSource=DEBUG
#log4j.logger.com.ibatis.sqlmap.engine.cache.CacheModel=DEBUG
#log4j.logger.com.ibatis.sqlmap.engine.impl.SqlMapClientImpl=DEBUG
#log4j.logger.com.ibatis.sqlmap.engine.builder.xml.SqlMapParser=DEBUG
#log4j.logger.com.ibatis.common.util.StopWatch=DEBUG
#log4j.logger.java.sql.Connection=DEBUG
#log4j.logger.java.sql.Statement=DEBUG
#log4j.logger.java.sql.PreparedStatement=DEBUG
#log4j.logger.java.sql.ResultSet=DEBUG

Regards,
Sven

radha rukmani wrote:

>Hi
> 
> I want to turn of the result set logging when ibatis runs the queries. I need only the
sql to be logged. Since mine is a batch process, with huge number of queries, the log file
it generates after each process is more than 50. Is there a way to turn of the result set
logging I use log 4j and havent written any logging statement for ibatis queries, it comes
by itself
> 
> Any help would be greatly appreciated
> Thanks in advance.
> 
> 
>
> 
>---------------------------------
>Blab-away for as little as 1ยข/min. Make PC-to-Phone Calls using Yahoo! Messenger with
Voice.
> 
>



		
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1&cent;/min.
Mime
View raw message