Refinitiv Data Library for Python

session.get_log_level

This method gets the current log level.

Module

refinitiv.data.session

Syntax

session.get_log_level()

Parameters

None.

Returned value

Session log level, possible values are [CRITICAL, FATAL, ERROR, WARNING, WARN, INFO, DEBUG, NOTSET].

Usage

The following example demonstrates how to create a session, set the log level, and check that it is properly set up.

import logging

from refinitiv.data import session

# Create session
my_session = session.desktop.Definition("desktop.workspace").get_session()

my_session.set_log_level(logging.DEBUG)

my_session.get_log_level()  # returns logging.DEBUG 

None