Better logging

Sebastian Spaeth Sebastian at SSpaeth.de
Fri Oct 28 07:32:40 UTC 2011


On Tue, 25 Oct 2011 10:03:57 +0100, Chris Dennis <cgdennis at btinternet.com> 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://github.com/spaetz/offlineimap.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
   UIs.

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.

Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/offlineimap-project/attachments/20111028/2a8cc7a7/attachment.pgp>


More information about the OfflineIMAP-project mailing list