Tutorial for adding logging to your sketch (quickly)

edited June 2014 in Share Your Work

Hey there, I've written up a show intro tutorial for using Log4J in conjunction with Processing sketches. It sets up loggers programmatically, so there are no config files required and the code can be copied and pasted between sketches.

http://jestermax.wordpress.com/2014/06/09/log4j-4-you/

Tagged:

Comments

  • Interesting and useful. Particularly when users want to output lot of debugging information (the console quickly saturates and crashes Processing when flooded).

  • You can actually hook up an optional console output as well with Log4J so you could have your nice log files after it crashes AND have console output while it still works. I think the key thing to emphasis is that you can have this logging quickly and cheaply for all sketches.

Sign In or Register to comment.