A
Andreas Jung
I have something like
try:
do_something_evil()
except:
reason = '....'
mylogger.critical('error with', exc_info=sys.exc_info())
my logginer.ini contains:
[handler_smtp]
....
level=CRITICAL
args=('localhost', '(e-mail address removed)', 'my subject')
Is there a way to pass the 'reason' var to the Logger in order
to be emitted as body of the mail?
-aj
try:
do_something_evil()
except:
reason = '....'
mylogger.critical('error with', exc_info=sys.exc_info())
my logginer.ini contains:
[handler_smtp]
....
level=CRITICAL
args=('localhost', '(e-mail address removed)', 'my subject')
Is there a way to pass the 'reason' var to the Logger in order
to be emitted as body of the mail?
-aj