SKA Logger¶
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.
-
class
ska_tango_base.
SKALogger
(*args, **kwargs)¶ A generic base device for Logging for SKA.
-
SetLoggingLevel
(argin)¶ Sets logging level of the specified devices.
To modify behaviour for this command, modify the do() method of the command class.
Parameters: argin ( tango.DevVarLongStringArray
) –Array consisting of
- argin[0]: list of DevLong. Desired logging level.
- argin[1]: list of DevString. Desired tango device.
Returns: None.
-
class
SetLoggingLevelCommand
(target, state_model, logger=None)¶ A class for the SKALoggerDevice’s SetLoggingLevel() command.
-
do
(argin)¶ Stateless hook for SetLoggingLevel() command functionality.
Returns: A tuple containing a return code and a string message indicating status. The message is for information purpose only. Return type: (ResultCode, str)
-
-
always_executed_hook
()¶ Method that is always executed before any device command gets executed.
-
delete_device
()¶ Method to cleanup when device is stopped.
-
init_command_objects
()¶ Sets up the command objects
-