<<< What is its primary purpose? (QELog widget) >>>
The (current) purpose of the QELog widget is to provide a way for other QE widgets to log messages for the user to see. QE widgets will log messages like failed to connect to a PV. The QELogin widget will log user level changes such
as moving from 'user' to 'scientist'.
<<< Can I create my custom log message (without programming)? >>>
How would you like to do this? From your own custom widgets? If so, the mechanism all QE widgets use for sending a message to QELog widgets is available to use within your own custom widgets.
The intention is that just dropping a QELog widget onto a form is all you need to do for that QELog widget to catch and list any messages from other QE widgets (or your own widgets using the QE message mechanism). By default the QELog
widget catches messages from QE widgets in the same form, or from sub forms. Different (and potentially more complex) configurations can be set up by fiddling with the messageFormFilter and messageSourceFilter properties. The latest documentation includes
a large section on logging using the QELog widget.
Go to http://sourceforge.net/projects/epicsqt/files/documentation/
And download QE_QEGuiAndUserInterfaceDesign.pdf
NOTE, the documentation on the QELog widget itself is incomplete, but starting on page 8 (20/2/2013 version) there is a good section called 'Logging' under 'Tips and Tricks' which explains how to use the QELog widget (with pictures!)
<<< Can I save the logged message in a file? >>>
The QELog widget has a 'Save' button which allows you to save the current messages to a file. Or do you mean automatically streaming messages to a file as they arrive?
<<< Can I create a log entry if a PV goes above a threshold? >>>
Not at the moment. This would be very easy to add if the threshold you are interested in is an PV limit. Currently most QE widgets act on a status change (for example, change colour if HIHI). I could easily include a standard property
to optionally log status changes. Would that help you?
I hope all this helps.
From: firstname.lastname@example.org [mailto:email@example.com]
On Behalf Of Emmanuel Mayssat
Sent: Saturday, 16 March 2013 5:10 AM
Subject: [EpicsQt-2] How to generate a QELog messages
I am looking at the excellent epicsqt framework.
Everyone on this list should really have a look at it!
I am looking at the QELog widget.
What is its primary purpose?
Can I create my custom log message (without programming)?
Can I save the logged message in a file?
(Ideally in my couchdb REST interface logbook !!)
Can I create a log entry if a PV goes above a threshold?
I am still going through the docs, but this framework is too good to not talk about ;-)