Modules

class ska_dish_lmc.DishLogger.DishLogger(*args: Any, **kwargs: Any)[source]
Log(log_message: List[str])

Write the log to stdout as received from TLS

Sample log: [‘1650964795495’, ‘ERROR’, ‘ska001/elt/master’, ‘TangoUtils::DeviceAttributeToCorbaAny() - A Message’, ‘’, @7f48dcc80700 [7]’]

Details of the list items here: https://tango-controls.readthedocs.io/projects/rfc/ en/latest/14/Logging.html#log-consumer

Parameters:

log_message (List[str]) – Parts of the TLS log message

RemoveDishLoggerTarget(device_name: str) None

Remove DishLogger as a logging target destination on device

SetDishLoggerTarget(device_name: str) None

Add DishLogger as a logging target destination on device

create_component_manager()[source]

Create the component manager LogComponentManager

Returns:

Instance of LogComponentManager

Return type:

LogComponentManager

class ska_dish_lmc.DishLogger.LogComponentManager(*args: Any, **kwargs: Any)[source]
log(timestamp: str, tango_log_level: str, tango_device: str, message: str) None[source]

Override log components and log to stdout.

Parameters:
  • timestamp (str) – The millisecond since epoch (01.01.1970)

  • tango_log_level (str) – The log level

  • tango_device (str) – The tango device

  • message (str) – The message to log