This module implements SKALogger device, a generic base device for logging for SKA. It enables to view on-line logs through the TANGO Logging Services and to store logs using Python logging. It configures the log levels of remote logging for selected devices.
Tango Device Class¶
SKALogger(*args: Any, **kwargs: Any)¶
A generic base device for Logging for SKA.
Sets up the command objects
Method that is always executed before any device command gets executed.
Method to cleanup when device is stopped.
SetLoggingLevelCommand(target, state_model, logger=None)¶
A class for the SKALoggerDevice’s SetLoggingLevel() command.
Constructor for SetLoggingLevelCommand
target (object) – the object that this command acts upon; for example, the SKASubarray device for which this class implements the command
state_model (SKABaseClassStateModel or a subclass of same) – the state model that this command uses to check that it is allowed to run, and that it drives with actions.
logger (a logger that implements the standard library logger interface) – the logger to be used by this Command. If not provided, then a default module logger will be used.
Sets logging level of the specified devices.
To modify behaviour for this command, modify the do() method of the command class.
Array consisting of
argin: list of DevLong. Desired logging level.
argin: list of DevString. Desired tango device.