At ALBA we have several ways to get logs from PyAlarm:
-
Using the SNAP database, but as it is not multihost you can’t use it.
-
Reading the PastAlarms attribute of the PyAlarm devices. It contains all the alarms triggered since the device was restarted. It should work for you, as taurus can get attributes from other tango hosts .
-
Generate an Alarm log file; using the LogFile property of the PyAlarm server you can save all PyAlarm actions to a file. As it is file-based you won’t need to care about tango hosts; but it is very hard to maintain in the long term.
-
Using a mail archive. We have some internal email addresses (e.g. alarms@vacuum) that record every single mail sent to them (just like the tango mailing list archives). Adding this address to all alarms allow us to have a full-log of all messages sent. The advantage of this method is that it keeps record of both the message and the receivers in CC. All logs are centralized in the mail service, so it is much easier to maintain.
If you want my advice, I would use a mix of the 2nd (for taurus gui’s) and 4th method (for long-term logs).