【python】logging记录traceback

import logging

try:
    do-something-block
except:
    logging.exception("Exception Logged")

 

posted @ 2017-03-23 18:50  匡子语  阅读(706)  评论(0编辑  收藏  举报