Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

RedDeer Log Parser

Vlado Pakan edited this page Jul 17, 2015 · 9 revisions

RedDeer Log Parser is a tool providing mechanism to parse content of log file dependent on defined rules and display parsed log file nicely formatted in customized Eclipse editor. Main purpose of this tool is to make it easier for users to find and display important information from long log file created during RedDeer test.

How it works

  1. Define parse rules
  2. Specify log file location and assign defined parse rules to log
  3. Display parsed log in customized Eclipse editor

Define parse rules

Parse rules can be defined via Eclipse preferences accessed via workbench menu Window > Preferences > RedDeer Tools > Log Parser

Each parse rule has these attributes:

  • name - name of the rule. It's mandatory and unique across Eclipse workspace
  • description - description of the parse rule
  • include regex - regular expression which log line has to match to be included in parsed log
  • exclude regex - regular expression which log line has to match to be excluded from parsed log even line would be included by include regex
  • indent - indent for line displayed in parsed log
  • prefix - prefix added to line included in parsed log
  • display lines before - specify how many lines from original log preceding line will be included in parsed log will be also included in parsed log
  • display lines after - specify how many lines from original log following line will be included in parsed log will be also included in parsed log

Specify log file location and assign defined parse rules to log

To specify log file location and assign parse rules to log open Log Parser view included in RedDeer Tools view category and choose Add Log tool item from Log Parser view tool bar

img/log_parser_view

Display parsed log in customized Eclipse editor

To open parsed log in Eclipse editor just double click on log in Log Parser view or choose Parse Log tool item from Log Parser view tool bar. It will open log in Log Parser editor which contains two tabs on the first tab is displayed parsed and formatted log and on second tab is displayed original log. Log is open in read-only mode. Via context menu in parsed log user can display currently line selected in parsed log in original log to see more context for particular line in parsed log

Clone this wiki locally