Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python logger get level

import logging

logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)

print(logger.level)  # 10
print(logging.getLevelName(logger.level))  # DEBUG
 
PREVIOUS NEXT
Tagged: #python #logger #level
ADD COMMENT
Topic
Name
4+9 =