[Box Backup-dev] Logging

Martin Ebourne boxbackup-dev@fluffy.co.uk
Sat, 24 Dec 2005 09:52:22 +0000


On Fri, 2005-12-23 at 22:23 +0000, Chris Wilson wrote:
> I'd like to propose replacing all three current logging methods with 
> something like this:
>
> ...
>
> Does this seem like a reasonable plan? Does anyone have any comments, 
> questions or objections? Not answering counts as acceptance in my book :-)

Sounds like a great plan to me. I was going to propose something in that
direction when converting from printf to streams. Maybe we could do that
transition in one go.

log4cxx is a good place to look if you need any further inspiration on
how to do this. It does (almost?) everything you list and much more. I
doubt Ben would want to use it directly because it would introduce more
dependencies (it itself is dependent on boost).

Cheers,

Martin.