AnsweredAssumed Answered

How to print ibatis sql log on original REST API application ?

Question asked by youtianhong on Jul 16, 2015
Latest reply on Sep 23, 2016 by snigdha.girdhar
I use original rest-war in my  web application, I want to print the SQL statement log when invoke rest api.
I can print it successufully on non rest API application, but I don't know how to config it for original rest API application.

Who know that  how to config to print SQL statement for original REST API application ?
As we know, activiti use ibatis to do persistence, for REST API application, I tried to modify lots of times, it can not work.

My file like below:
log4j.rootLogger=debug, CA

# ConsoleAppender
log4j.appender.CA.layout.ConversionPattern= %d{hh:mm:ss,SSS} [%t] %-5p %c %x - %m%n
#The following configuration which i look up on web site that support print ibatis log in non rest API activiti system

When I debug in eclipse and change the value "org.slf4j.impl.JDK14LoggerAdapter.isDebugEnabled" = true  manually,  it will print ibatis sql log. How can i config it ?
Any feedback will be much appreciated. Thanks in advance.