ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Bojer <ibo...@gmail.com>
Subject Re: Executed SQL log
Date Thu, 19 Mar 2009 17:49:46 GMT
You can use this as template then narrow it down to your needs:

# 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.common.jdbc.ScriptRunner=DEBUG
log4j.logger.com.ibatis.sqlmap.engine.impl.SqlMapClientDelegate=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
# Console output...
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n


On Thu, Mar 19, 2009 at 9:12 AM, Alin Popa <alin.popa@gmail.com> wrote:
> Cool,
>
> Thanks.
>
> On Thu, Mar 19, 2009 at 5:17 PM, Nicholoz Koka Kiknadze
> <kiknadze@gmail.com> wrote:
>>>
>>> It's possible to display the executed SQL somehow ?
>>
>> Sure, it's possible to log what statements are prepared, what parameters are
>> set to and what results are retrived. Check the
>> 'Logging SqlMap Activity' section in developer guide.
>>
>
>
>
> --
> Best Regards,
>
> Alin
>

Mime
View raw message