Logging Stacktrace To File

Olaf Meding OlafMeding at noSpam.compuserve.com
Tue Apr 13 08:28:35 EDT 2004


> ... have to catch the exception and then log it to the file.

Right.  I do also know how to open a file and write to it.

But how do I get at the stack trace?  I would like to have it look the same
in the file as what gets printed to the screen.

Thanks again.

Olaf






More information about the Python-list mailing list