<s> import logging <EOL> import traceback <EOL> log = logging . getLogger ( '<STR_LIT>' ) <EOL> def log_traceback ( log = log , level = logging . DEBUG ) : <EOL> """<STR_LIT>""" <EOL> for line in traceback . format_exc ( ) . splitlines ( ) : <EOL> log . log ( level , line ) </s>
