[wxPython-users] adding timestamp to crash log
Thomas Thomas
thomas at eforms.co.nz
Wed Jul 19 20:21:19 PDT 2006
Hi John,
Thanks for that ..
it needs to be printed to stderr to appear on the log..
def myExceptHook(type, value, traceback):
print >> sys.stderr, datetime.datetime.today().strftime('%Y-%m-%d %=
H:%M:%S')
_excepthook(type, value, traceback)
cheers
-----------------------------------------------------
Thomas Thomas
phone +64 7 855 8478
fax +64 7 855 8871
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200607=
20/70ef0601/attachment.htm
More information about the wxpython-users
mailing list