Using getEffectiveLevel
I can query what the logger current level is:
import logging
logger = logging.getLogger('top')
level_number = logger.getEffectiveLevel()
The returned by getEffectiveLevel
method value is the integer. I wonder if there is a way of querying a corresponding the string value such as "DEBUG" or "INFO" instead of an integer.