Log system information

You can gather system information from a QNX Neutrino target and log it to a file, and then view it later in the IDE. Here's how:
  1. Right-click your target in the Target Navigator view, and then choose Log With... > Log Configurations… from the menu.
  2. Select System Information Logging Configuration, and then select the New launch configuration icon () to create a Log configuration.
  3. On the Main tab of the log configuration, select the location where you'd like to store the log file.
  4. Select the mode to use:
    • Snapshot mode collects all the requested data, and then stops.
    • Continuous mode collects the data, and then continues to collect any changes to the data for the requested period of time at an interval provided (the default is 1 second).
  5. Select the QNX Neutrino target and any processes you want to collect data for.
  6. If you wish, select the Logging Options tab and select the level of information you require.
  7. Select Log.

Here are a few things to consider when setting up your log configuration:

Viewing captured system information

Once the logging process has begun, you'll see a progress monitor for it in the Progress view and the lower right progress area of the main IDE window.

When the logging operation finishes, the IDE presents the captured data as a target in the System Information History View. This view behaves the same way as the Target Navigator view; selecting the target or one or more processes causes the System Information views to show the corresponding data from the log.

Figure 1. The System Information History view shows captured information for the program.

To view the data captured over a period of time in continuous mode, drag the time index slider at the bottom of the System Information History view to the point in time where you'd like to view the data; the views update to show the data at that point in time.

To view a log file from a previous logging session, select the Search log files button () in the toolbar area of the System Information History view. This presents you with a dialog showing a list of the log files that the IDE has found:

Figure 2. Opening a log file from a previous logging session.

In the Open System Information Log File dialog, you can set search paths for the IDE to use to find log files, and you can load these log files into the System Information perspective. By default any existing log configurations that you've used to gather information are shown. To load a log file, select it in the tree, and then select Open Log. When the file is loaded, the data from the log file appears as a target in the System Information History view.