58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
-
+
-
-
+
+
|
<verbatim>
(trigger "Init" #/This is a header/)
(trigger "InitEnd" #/^\s*$/)
(section "Init" "Init" "InitEnd")
</verbatim>
You almost certainly want a section which covers the entire log file, here we call it "body". We cheat and do not create a trigger for the end of the section since we want that section valid for the entire log file:
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")
(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/)
|