In place of GPUtil.debug(), gpj should use either log4j (preferred) or commons logging. It's rather painless, and helps with embedding gpj in other projects (at least much more so than writing stuff to stdout).
Suggested patch to add log4j support
Suggested log4j properties file
After applying the enclosed patch and copying in the log4j.properties file, you can modify the gpj.sh script to add
-Dlog4j.configuraiton=[path to log4j.properties]
The result should be that all of the debug logging, including the APDUs, goes into a file called debug.log.
Log in to post a comment.
Suggested patch to add log4j support
Suggested log4j properties file
After applying the enclosed patch and copying in the log4j.properties file, you can modify the gpj.sh script to add
-Dlog4j.configuraiton=[path to log4j.properties]
The result should be that all of the debug logging, including the APDUs, goes into a file called debug.log.