add logging to exception code example
Example 1: log2 in python
math.log2(x) #x is a number
Example 2: python logging to console exqmple
import sys
# ...
logging.getLogger().addHandler(logging.StreamHandler(sys.stdout))
math.log2(x) #x is a number
import sys
# ...
logging.getLogger().addHandler(logging.StreamHandler(sys.stdout))