DVT e Language IDE User Guide
Rev. 24.1.5, 13 March 2024

27.2.3 Smart Log - Styles

Assuming the filter MyTrace has a pattern Trace (?<AGENT_KIND>[a-zA-Z_0-9]+) (?<INSTANCE>[a-zA-Z_0-9]+) .* that contains 2 groups tagged <AGENT_KIND> and <INSTANCE>, DVT will randomly assign a color for each unique combination (AGENT_KIND_match, INSTANCE_match).

You'll get different colors for:

  • Master M1 (<AGENT_KIND> group matched "Master" and <INSTANCE> matched "M1")

  • Master M2 (<AGENT_KIND> group matched "Master" and <INSTANCE> matched "M2")

  • Slave S1 (<AGENT_KIND> group matched "Slave" and <INSTANCE> matched "S1")

  • Slave S2 (<AGENT_KIND> group matched "Slave" and <INSTANCE> matched "S2")

Trace Master M1 sending packet...

Trace Master M2 waiting for grant...

Trace Slave S1 receiving packet...

Trace Master M1 abort...

Trace Slave S1 signal nack...

Trace Slave S2 go to idle...

You can manually assign colors by editing the .dvt/log_styles.xml file:

You can easily share log styles using Settings Management.


<?xml version="1.0" encoding="UTF-8"?>

<section name="attributes">

<item key="version" value="1"/>

<list key="log_styles">

<item value="PATTERN_NAME=MyTrace, AGENT_KIND=Master, INSTANCE=M1, COLOR=#FF8000, FONT_STYLE=BOLD, BORDER_STYLE=NONE"/>

<item value="PATTERN_NAME=MyTrace, AGENT_KIND=Master, INSTANCE=M2, COLOR=#008000, FONT_STYLE=BOLD, BORDER_STYLE=NONE"/>

<item value="PATTERN_NAME=MyTrace, AGENT_KIND=Slave, INSTANCE=S1, COLOR=#800080, FONT_STYLE=BOLD, BORDER_STYLE=NONE"/>

<item value="PATTERN_NAME=MyTrace, AGENT_KIND=Slave, INSTANCE=S2, COLOR=#8080FF, FONT_STYLE=BOLD, BORDER_STYLE=NONE"/>

</list>

</section>


For example the first line means "If pattern MyTrace matched and AGENT_KIND is 'Master' and INSTANCE is 'M1' set color to ...".

You can use regular expressions, for example AGENT_KIND=M*.

You can specify the COLOR, the FONT_STYLE (BOLD or ITALIC), and the BORDER_STYLE (DOT or SOLID or NONE).


Note: If you want to also use the random color palette available for the predefined filters, you should add the following item in the .dvt/log_styles.xml file:

<item key="use-random-defaults" value="true"/>

Smart Log - Filters

Smart Log - Hyperlinks

Run Configurations