Logging Exceptions with Stracktrace in Python
import logging
logger = logging.getLogger(__name__)
try:
# something
pass
except:
logger.exception('A useful header to the exception stacktrace')
Feedback?
Email us at enquiries@kinsa.cc.