Skip to main content
    • In this guide, we'll be setting up the debug logging configuration for OpenPnP.

    • OpenPnP uses a framework called log4j that does the heavy lifting of logging debug data.

    • The configuration file that contains which bits of information are logged, is contained in log4j.properties, which is located in the .openpnp directory.

  1. Open the file in a decent text editor.
    • A lot of stuff can be ignored in this file for now, but we will change a few things from info level to debug level. This will log more stuff to the console that can be helpful for debug logging.

    • Turn on driver debug logging by finding the line that says log4j.logger.org.openpnp.machine.reference.driver and change the info string to debug.

    • At this point, you can run OpenPnP and it will log some data to .openpnp/log

  2. Navigate to the .openpnp/log directory, and locate the latest log (it's helpful to sort by time).
    • Navigate to the .openpnp/log directory, and locate the latest log (it's helpful to sort by time).

    • Load it in a text editor.

    • You will see that log4j has logged debug-level information out to this file. This information will come in handy for troubleshooting purposes.

Finish Line

One other person completed this guide.

Neil Jansen

Member since: 12/28/2014

5,753 Reputation

25 Guides authored

0 Comments

Add Comment

View Statistics:

Past 24 Hours: 1

Past 7 Days: 1

Past 30 Days: 2

All Time: 459