Insert todo’s here
This section details the public API for configuring application logging across the SKA project.
The API for the configuration using Python is shown below.
Public API Documentation
Module init code.
- ska_ser_logging.configure_logging(level=None, tags_filter=None, overrides=None)
Configure Python logging for SKA applications.
This function should be used to configure the application’s logging system as early as possible at start up.
For Python TANGO devices that inherit from lmcbaseclasses.SKABaseDevice this is already done in that base class, so it does not need to be done again.
Example usage is shown in this repo’s
tags_filter (type derived from logging.Filter, optional) – If this type (not instance) is provided, the default formatter will include a “%(tags)s” specifier. The filter must inject the tags attribute in each record.
overrides (dict, optional) – The default logging configuration can be modified by passing in this dict. It will be recursively merged with the default. This allows existing values to be modified, or even removed. It also allows additional loggers, handlers, filters and formatters to be added. See the _override function for more details on the merging process. The end result must be compatible with the logging.config.dictConfig schema. Note that the level and tags_filter parameter are applied after merging the overrides.
Return a formatter configured with the standard logging format.