Menu

#8 Consider better logging

open
nobody
None
5
2010-03-11
2010-03-11
Nick Sayer
No

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).

Discussion

  • Nick Sayer

    Nick Sayer - 2010-03-11

    Suggested patch to add log4j support

     
  • Nick Sayer

    Nick Sayer - 2010-03-11

    Suggested log4j properties file

     
  • Nick Sayer

    Nick Sayer - 2010-03-11

    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.