Answers for "logger.debug and logger.info difference"

6

logging.logger

import logging

logging.basicConfig(level=logging.WARNING)
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
  
logger.debug("some debugging...")
logger.error("some error...")
Posted by: Guest on December-02-2020
0

logger debug vs info

ALL < TRACE < DEBUG < INFO < WARN < ERROR < FATAL < OFF
Posted by: Guest on January-06-2021

Python Answers by Framework

Browse Popular Code Answers by Language