2012 <2013> 2014 2015 2016 2017 2018 2019 | Index | 2012 <2013> 2014 2015 2016 2017 2018 2019 |
<== Date ==> | <== Thread ==> |
---|
Subject: | RE: [EpicsQt-2] How to generate a QELog messages |
From: | Andrew Rhyder <[email protected]> |
To: | Emmanuel Mayssat <[email protected]>, "[email protected]" <[email protected]> |
Date: | Mon, 18 Mar 2013 12:19:41 +1100 |
Hi Emmanuel <<< 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. Regards Andrew From: [email protected] [mailto:[email protected]]
On Behalf Of Emmanuel Mayssat I am looking at the excellent epicsqt framework. SUPPLIERS: As of 1 January 2013, the Australian Synchrotron Company Ltd has changed its business name. However, the trading name will remain Australian Synchrotron. Please address all quotations and invoices to: Synchrotron Light Source Australia Pty Ltd (SLSA), ABN: 18 159 468 256 |