How to enable console logging in Python

Enabling console logging tracks the events occurring within a certain piece of code as it is runs in Python.

Solution for How to enable console logging in Python : You can use logging.getLogger() and logging.Logger.propogate to enable console logging in Python Call logging.getLogger() to return an instance of the logging.Logger class. Use logging.Logger.propagate = True to enable console logging.


how-to-enable-console-logging-in-python