lilmeth Posted January 14, 2013 Share Posted January 14, 2013 Hello,I developed a java application (J2EE) which uses Jasper report library (precisely a maven dependency of the jasper library).I would like to know if there is a way to log the executed sql query of the report, I mean the one which has been parsed by the jasper engine for parameter substitution... ?Is there a way to enable logging of jasper from my main java-maven module ? Log4j configuration ? thanks, Sylvain Link to comment Share on other sites More sharing options...
mrcaffeine Posted January 14, 2013 Share Posted January 14, 2013 you can set this class to log level debug: net.sf.jasperreports.engine.query.JRJdbcQueryExecuter The createStatement method logs the SQL query string. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now