Bug 101825 - event monitor: control log output
Summary: event monitor: control log output
Status: RESOLVED INTENTIONAL
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: unspecified Solaris
: VLO wishlist
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-18 17:35 UTC by Nicolas Brisset
Modified: 2006-02-15 00:35 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Brisset 2005-03-18 17:35:11 UTC
Version:           1.1.0_devel (using KDE 3.3.1, compiled sources)
Compiler:          gcc version 3.4.1
OS:                SunOS (sun4u) release 5.8

It would be nice to have control over what gets logged (or sent as arguments to a script as asked for in bug #101823) when an event is triggered.

To give an example of something I would like to be able to do, imagine I have curves 1 through 5 plotted, corresponding to vectors VAR1 to VAR5 plotted against vector TIME. If I define an event as "VAR1>10.0", I would like to be able to log the *TIME* values corresponding to this event and possibly values of other variables as the event begins/ends. I don't know how to do this now as I have no control as to what is logged. Maybe providing a format string with one or more expressions in the same syntax as equations would be feasible ? 
There is another related thing I am unsure about: is it possible to have access to the current sample number when the event triggers (it seems to be logged by the elog extension) and to access vector elements in the current parser ? That would be required to log e.g. the value of TIME when "VAR1>10.0" triggers. In the end, for this example I imagine a format string like:
"Event: VAR1 above limit ! VAR1 = {[VAR1(@)]}, TIME = {[TIME(@)]}, deviation = {[VAR1(@)] - [VAR1-Mean]}"

The syntax can be different and there may be a different way to do this, but I hope you get the idea...
Comment 1 Netterfield 2006-02-15 00:35:21 UTC
We have no plans to enhance events at this time.