ID EN
Logging

basicConfig

Python 3.11

Does basic configuration for the logging system by creating a StreamHandler with a default Formatter and adding it to the root logger. The functions debug(), info(), warning(), error() and critical() will call basicConfig() automatically if no handlers are defined for the root logger.

Syntax

PYTHON
logging.basicConfig(**kwargs)

See Also

StreamHandler Formatter debug() info() warning() error() critical() basicConfig()