Skip to content

Logging

logging

CRITICAL = logging.CRITICAL module-attribute

FATAL = CRITICAL module-attribute

ERROR = logging.ERROR module-attribute

WARNING = logging.WARNING module-attribute

WARN = WARNING module-attribute

INFO = logging.INFO module-attribute

DEBUG = logging.DEBUG module-attribute

NOTSET = logging.NOTSET module-attribute

set_level(level: Union[int, str], logger: Optional[logging.Logger] = None)

Set the logging level of the logger.

Parameters:

Name Type Description Default
logger Logger

Logger instance.

None
level int or str

Logging level.

required