how to use logging in python to pring in output console code example
Example: python logging to console exqmple
import sys
# ...
logging.getLogger().addHandler(logging.StreamHandler(sys.stdout))
import sys
# ...
logging.getLogger().addHandler(logging.StreamHandler(sys.stdout))