Intercepting LogWarning and LogError calls to a logging class
I have set up a logging class to format my output the way I want it, but there is one problem: I cannot see how to intercept random warnings and (non-fatal)errors. For example, the warning
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">*** Warning: DefaultBaseState is restoring GradebookServer</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">shows plaining in the Silk results file, but does not print in my log file.
I know the easiest way to trap these is in a do...except structure, but I'm looking to trap random non-fatal errors and warnings.