6.5.5.2 MPLAB Logger

When using the MPLAB Logger, you can capture data in two log files: MPLAB X IDE log file and the NetBeans platform log file.

Figure 6-52. Data Logging

MPLAB X IDE Log File

The MPLAB X IDE log file generates data based on the Java Logger class.

To set up a log file:

  1. Select Tools > Options (MPLAB X IDE > Preferences for macOS), Embedded button, Diagnostics tab.
  2. Select a logging level from the drop-down box.
    Note: The higher the logging level, the more data is collected, but the slower your application will run.
  3. Select a location (path) for the log file.

To log data:

  1. Set up the log file using logging level Finest.
  2. Take note of the log file name and location.
  3. Repeat the steps to cause the error or issue.
  4. Find the log file(s) and send to technical support along with other requested information.

NetBeans Platform Log File

The NetBeans log file generates information on the executing NetBeans Platform.

To log data:

  1. Open the log file the Output window by selecting View > IDE log.
  2. Right click in the window and select Clear.
  3. Repeat the steps to cause the error or issue.
  4. Right click in the window and select Save As to save the text to a file.
  5. Send the file to technical support with other requested information.

Logging Considerations

When logging with MPLAB Logger, keep the log files as short and focused as possible. That is, instead of running code and logging for a long time till an error occurs, attempt to capture a more focused run just before the error.