Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python logging change handler level

import logging

level = logging.DEBUG
logger = logging.getLogger()
logger.setLevel(level)
for handler in logger.handlers:
    handler.setLevel(level)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #logging #change #handler #level
ADD COMMENT
Topic
Name
5+5 =