blpapi.Logger

class blpapi.Logger

This utility class provides a namespace for functions to test the logging configuration.

SEVERITY_DEBUG = 5
SEVERITY_ERROR = 2
SEVERITY_FATAL = 1
SEVERITY_INFO = 4
SEVERITY_OFF = 0
SEVERITY_TRACE = 6
SEVERITY_WARN = 3
static logTestMessage(severity)

Log a test message at the specified ‘severity’. Note that this function is intended for testing of the logging configuration only.

Return type:

None

loggerCallbacksLocal: List[Tuple[Callable, Callable]] = []
static registerCallback(callback, thresholdSeverity=4)

Register the specified ‘callback’ that will be called for all log messages with severity greater than or equal to the specified ‘thresholdSeverity’. The callback needs to be registered before the start of all sessions. If this function is called multiple times, only the last registered callback will take effect. An exception of type ‘RuntimeError’ will be thrown if ‘callback’ cannot be registered. If callback is None, any existing callback shall be removed.

Return type:

None