Re: Python logging: Retrieving the last log record from a handler

2008-03-04 Thread Vinay Sajip
On Mar 3, 11:41 am, Frank Aune <[EMAIL PROTECTED]> wrote: > I will be fairly surprised if this functionality is not already built-in for > the defaultlogginghandlers, but so far I've been unable to figure out how > to pull it of without the custom loghandler above. Prepare to be surprised ;-) Exc

Python logging: Retrieving the last log record from a handler

2008-03-03 Thread Frank Aune
Hi, I'm using a log hierarchy in my application, and sometimes I find myself wanting to retrieve the latest log message written to the root logger. (Typical usage might be displaying the latest log message at all times in a GUI). The only way I've found how to solve this, is by adding a custom