logging - Logging facility for Python - Python 3.8.6rc1 documentation
Source code: Lib/logging/__init__.py This module defines functions and classes which implement a flexible event logging system for applications and libraries. The key benefit of having the logging API provided by a standard library module is that all Python modules can participate in logging, so your application log can include your own messages integrated with messages from third-party modules.
https://docs.python.org/ko/3/library/logging.html