ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco Berri <marco.be...@bluestudio.it>
Subject Re: SQL logging
Date Wed, 03 Aug 2005 10:47:57 GMT
Hi!

I Use this (in log4j.xml) :

	 <appender name="java-sql" class="org.apache.log4j.RollingFileAppender">
		<param name="File" value="usr/sql/sql.log" />
		<param name="Threshold" value="ALL"/>
		<param name="MaxFileSize" value="1MB"/>
		<param name="MaxBackupIndex" value="5"/>
         	<layout class="org.apache.log4j.PatternLayout">
         	    <param name="ConversionPattern" value="%-5p [%d{yyyy-MM-dd 
HH:mm:ss}] %x %c [%l] - %m%n"/>
         	</layout>
     </appender>

  	<logger name="java.sql" additivity="true">
        <appender-ref ref="java-sql" />
	</logger>


by!!

Marco Berri
	

Eugeny N Dzhurinsky wrote:
> Is there any way to view the queries the iBATIS generates? I tried to set up
> the java.sql=DEBUG, in log4j, but no luck for now.
> 

Mime
View raw message