Log Data

Log files are useful for capturing your program execution and debugging problems.

When you have an MPLAB X IDE error or issue and need to contact technical support, you may be asked to capture data in two log files: MPLAB X IDE log file and the NetBeans platform log file. Other supporting information will be requested as well.

Figure 1. 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. 1.Select Tools>Options (MPLAB X IDE>Preferences for macOS), Embedded button, Diagnostics tab.
  2. 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. 3.Select a location (path) for the log file.

To log data:

  1. 1.Set up the log file using logging level “Finest.”
  2. 2.Take note of the log file name and location.
  3. 3.Repeat the steps to cause the error or issue.
  4. 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. 1.Open the log file the Output window by selecting View>IDE log.
  2. 2.Right click in the window and select “Clear.”
  3. 3.Repeat the steps to cause the error or issue.
  4. 4.Right click in the window and select “Save As” to save the text to a file.
  5. 5.Send the file to technical support with other requested information.

Additional Supporting Information

Although logs are useful, other information will be required and requested by technical support to help them resolve your issue. This information includes:

Logging Considerations

When logging: