Logging Python Error with Debug Information

Python generates single line error messages, but I am required to display the stack trace of the errors generated in python codebase. After referring the online resources, I got to know that I need to use logging library for this, but I am not able to successfully get it implemented. Sharing a sample code, any help or guidance will be appreciable. 

import logging
try:
    1/0
except ZeroDivisionError as e:
    logging.error(e)  


# ERROR:root:division by zero

How can i get the whole error stack as in some other programming languages.