Print logs for flowable method APIs

Hey, I am using flowable method APIs, I am calling these methods using a REST api. I need to print the sql statements that these methods are using. How to do that ?
Please provide with the pom and properties file, also I need to store the logs into a file.
How to achive the same ?