首页 > 代码库 > 【python】logging记录traceback

【python】logging记录traceback

import logging

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

 

【python】logging记录traceback