ska_sdp_batchlet.log_config module
- ska_sdp_batchlet.log_config.LOGGING_CONFIG = {'filters': {'hostname': {'()': <class 'ska_sdp_batchlet.log_config._HostnameFilter'>}, 'tags': {'()': <class 'ska_sdp_batchlet.log_config._TagsFilter'>}}, 'formatters': {'default': {'format': '1|%(asctime)s.%(msecs)03dZ|%(levelname)s|%(hostname)s|%(threadName)s|%(funcName)s|%(filename)s#%(lineno)d|%(tags)s|%(message)s'}}, 'handlers': {'console': {'filters': ['hostname', 'tags']}}, 'root': {'filters': ['hostname', 'tags'], 'handlers': ['console']}}
Logging config which overrides the SKA Logging Format, in order to support custom Hostname and Tags Filters.
The "default" formatter, and "console" handler are defined in ska_ser_logging's configuration.
This config must be provided in the overrides parameter of configure_logging function, as shown below:
>>> from ska_ser_logging import configure_logging >>> configure_logging(overrides=LOGGING_CONFIG)