Yes, I think that should be easy possible. I'm just thinking about how to make it self-explaining and easy to use on one hand and allowing flexibility on the other hand.
I could modify the existing action 'Fire Event On Log Entry'.
- First of all, rename it to 'Log Monitor'
- Leave the upper box "Monitor log message" as is
- Rename the lower box to "Action when found"
- The new GUI could look like this:
Code: Select all
----- Monitor log message -------------------------------
Catch log message ___________________________________
[ ] Case sensitive
[ ] Whole line
Monitor log messages of type
[x] Error
[x] Warning
[x] Information
[ ] Action
[ ] Macro
[ ] Event
----- Clip the log message ------------------------------
(o) Extract the text between character ___ and ___ (e.g. " and ")
( ) Extract the text between position ___ and ___ (e.g. 27 and 32)
( ) Extract numeric value (e.g. find "40" in "HTTP.Volume[u'40']")
( ) Apply a regular expression ___________________________
( ) Keep the full log message as is
----- Action when found ---------------------------------
[x] Fire an event
Event name __________________________
[ ] Fire only once (until next call of this action)
The clipped log message will be accessible as payload of the event
[x] Set a variable
Variable name: eg.globals.____________________
[ ] Print the clipped log message
What do you think? Suggestions, ideas? Would someone, who speaks better English than me, correct/improve the labels?