Dish Logger Device Server

class ska_dish_lmc.DishLogger.DishLogger(*args, **kwargs)[source]
Log(log_message)[source]

Write the log to stdout as received from TLS

Sample log: [‘1650964795495’, ‘ERROR’, ‘mid-dish/dish-manager/SKA001’, ‘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)[source]

Remove DishLogger as a logging target destination on device

Return type:

None

SetDishLoggerTarget(device_name)[source]

Add DishLogger as a logging target destination on device

Return type:

None

create_component_manager()[source]

Create the component manager LogComponentManager

Returns:

Instance of LogComponentManager

Return type:

LogComponentManager

class ska_dish_lmc.DishLogger.LogComponentManager(logger)[source]
log(timestamp, tango_log_level, tango_device, message)[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

Return type:

None