Cloning and timeline browsing: this project is on ChiselApp: chiselapp.com/user/kiatoa

Changes to "LogProcessor" between 2017-08-25 05:39:20 and 2020-11-02 16:41:41

︙
73
74
75
76
77
78
79
80
81
82



83
84
85
86
87
88
89
90
91
92
93
94
95
96
97



98
99
100
101
102
103
104
73
74
75
76
77
78
79



80
81
82
83
84
85
86
87
88
89
90
91
92
93
94



95
96
97
98
99
100
101
102
103
104







-
-
-
+
+
+












-
-
-
+
+
+








<h3>Sections</h3>
You can break your log file into sections to make applying the rules very specific. For example you may want to only apply a set of rules in the compile section of the log file related to compiler failures.

Example: Create a section called "Init" that only applies between a line containing the string "This is a header" and a blank line. The lines match on regular expressions delimited by #/ and /.

<verbatim>
(trigger "Init"     #/This is a header/)
(trigger "InitEnd"  #/^\s*$/)
(section "Init" "Init" "InitEnd")
(trigger "InitStart"  #/This is a header/)
(trigger "InitEnd"    #/^\s*$/)
(section "Init" "InitStart" "InitEnd")
</verbatim>

By default Logpro provides a section "LogFileBody" that covers the entire log file. This example illustrates how you can create sections that start at the beginning or end of a log file. To match the beginning we use a regex that matches anything. To match the end simply use a trigger name that has no specification.

<verbatim>
(trigger "Body"     #/^.*$/)           ;; anything starts the body
(section "Body"     "Body" "EndBody")  ;; EndBody trigger is not defined
</verbatim>

Some sections may occur multiple times in a file. Use trigger-with-limit for those. Use a large number if you don't know how many times the trigger may be hit.

<verbatim>
(trigger-with-limit "Blah5"    100 #/^begin Blah5/)
(trigger-with-limit "Blah5End" 100 #/^end Blah5/)
(section "Blah5" "Blah5" "Blah5End")
(trigger-with-limit "Blah5Start" 100 #/^begin Blah5/)
(trigger-with-limit "Blah5End"   100 #/^end Blah5/)
(section "Blah5" "Blah5Start" "Blah5End")
</verbatim>

<h3>Required Expects</h3>

There will be some lines in your log file that, if missing, indicate a problem. Create required expects for those:

<verbatim>
︙