On Monday, 27 February 2012 at 18:10:15 UTC, Kalle Svensson wrote:
* I agree that it is a good idea just to use few log levels.
* I think is it is a misstake not to let formatting of the whole
log message be pluggable (i.e. not the free text message the
programmer writes). If I have created a special RFC5424
formatter
(with MSGID and STRUCTURED-DATA fields set according to the will
of my corporate masters) I want to resuse it in both the
FileLogger and a future TcpLogger without having to use
inheritance. Your "line format" formatter in FileLogger is a
good
default formatter though.
I second what Kalle Svensson is saying.
My belief is that when there are many log levels, people don't
use them as intended or only use a subset of them, often a
combination.
/ Mikael