P
Pierre GM
All,
I need to log messages to both the console and a given file. I use the
following code (on Python 2.5)
So far so good, but I'd like to record (possibly unhandled) exceptions
in the logfile.
* Do I need to explicitly trap every single exception ?
* In that case, won't I get 2 log messages on the console (as
illustrated in the code below:
Any comments/idea welcomed
Cheers.
I need to log messages to both the console and a given file. I use the
following code (on Python 2.5)
So far so good, but I'd like to record (possibly unhandled) exceptions
in the logfile.
* Do I need to explicitly trap every single exception ?
* In that case, won't I get 2 log messages on the console (as
illustrated in the code below:
Any comments/idea welcomed
Cheers.