Better logging

Sebastian Spaeth Sebastian at
Fri Oct 28 08:32:40 BST 2011

On Tue, 25 Oct 2011 10:03:57 +0100, Chris Dennis <cgdennis at> wrote:
> The problems are:
> 1) the logfile has no timestamps
> 2) output to the logfile is heavily buffered, so I can't see the latest 
> messages without stopping offlineimap.

> Would this be easy to fix?  I'll have a go myself if someone will tell 
> be which part of the various git repositories I should work on.

This had been reported a couple of times and I was hoping for volunteers
to tackle this. I have now done this myself :-).

My repository at
git:// now contains a reworked UI that
uses python's logging facilities. The changes:

a) console output goes to stderr (for now) 

b) file output has timestamps and looks identical in the basic and ttyui

c) I believe file output should be flushed after logging by default (do
   report if not).

Let me know if things work better from that branch.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <>

More information about the OfflineIMAP-project mailing list