Logging all uncaught exceptions
steve at pearwood.info
Mon Jul 14 11:42:55 CEST 2014
On Mon, 14 Jul 2014 19:21:44 +1000, Chris Angelico wrote:
> On Mon, Jul 14, 2014 at 7:07 PM, Steven D'Aprano <steve at pearwood.info>
>> but the exception info which should have been generated by
>> mylogger.exception doesn't appear anywhere I can see.
>> What am I doing wrong?
> I'm not specifically familiar with the logging module, but something I'd
> look at would be 'ls /var/log -lt|head' to see what files get updated.
> (Works well with 'watch' - a file gets changed, it jumps up to the top
> of the list.) Maybe the exceptions are going into a different file (they
> go at the ERROR level, IIUI).
That's it! Thanks.
Under Debian, ERROR level messages go to /var/log/syslog instead of debug
More information about the Python-list