test_logging API Documentation

Module contents

This module contains common log formatting functionality intended for use across all test repositories.

ska_mid_cbf_common_test_infrastructure.test_logging.formatting.LOG_FORMAT = '[%(asctime)s|%(levelname)s|%(filename)s#%(lineno)s] %(message)s'

LOG_FORMAT is the formatting specification for all log messages to use in test repositories.

ska_mid_cbf_common_test_infrastructure.test_logging.formatting.setup_logger(logger: Logger)[source]

Setup up given logger with format of LOG_FORMAT and INFO logging level.

Returns:

given logger