Daniel Fetchinson schrieb:
> Is there a simple way to redirect all output from a scheduled task to
> a file and if an exception is raised in the scheduled function then
> all tracebacks to another file? The ideal solution would work in all
> cases, serial, threaded and forked tasks.

Use the logging module with different handlers for different logging 
levels? Wrap your main scheduled function in a try/except and in case of 
an exception import the traceback module and log an error message and 
the traceback with ERROR level.

Chris

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to