Using the Pattern Log Reader

Posted in impulse Log

With the pattern log reader, you can read line based logs containing multiple line patterns.

Screen Cast: Using Pattern Log Reader

In most cases, developers have text log outputs. In the good case, all log line share the same format, but often there is a strange mix of multiple line pattern due to historical reasons.

Up to a certain level, impulse can parse these mixed logs and present and analyze them in a uniform way.
To achieve this, the user can define a set of pattern. Each pattern describes the format and content of one line type.

Here a typical log example:
 

NOTE     [212 745 133.974 ns] in top.mDist_dsp_access.r2_op : getX4LegChangeDone happened
WARNING  [212 745 133.974 ns] in top.mDist_dsp_access.r4_op : getX4LegChangeDone
ISR at 214435176 
ERROR    [214 435 176.000 ns] in top.mDist_dsp_wait : Kernel changed state to: OUTPUT
# Leg ok - wait for next
NOTE00000[216 735 876.000 ns] in top.F4.generics : Calculated load 47%

Usage

The reader can be used to open workspace resources and together with ports (direct connection to the target using TCP, Serial, J-Link, ...).

Configuration

You can modify the serializer behavior under Preferences->impuse->Serializer->[serializer name]: You may modify the serializer parameters (see "Parameters" - global variables depending on the serializer type).
You may add serializer configurations. You can select one configuration when using the serializer.

The Pattern Log Reader requires a configuration (Pattern Log Configuration) to work. Each configuration contains a set of log pattern. Click the Add button to add a new "Pattern Log Configuration" and fill in the following parameters:

Press "Add" and select "Log Pattern" to create a new pattern.

You can define multiple pattern (e.g. you may have different log styles from different units). When reading, it takes the first pattern that matches. Use the buttons on the right side to re-order your patterns.

The log pattern dialogue shows the following parameters:

First step is done. Now you need to define what to do with the extracted attributes.

Now you are ready with the reader configuration. Please have in mind that the standard file extension for pattern logs is ".log". To change ,please use the Preferences -> General -> Content Types -> (Element/Record/Pattern Log Record).

Print

User Rating: 0 / 5

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive