python simple console logging code example
Example 1: python logging to console exqmple
import sys
# ...
logging.getLogger().addHandler(logging.StreamHandler(sys.stdout))
Example 2: python logging
!python -m unittest test_volume_cuboid.py
import sys
# ...
logging.getLogger().addHandler(logging.StreamHandler(sys.stdout))
!python -m unittest test_volume_cuboid.py