Review of Jose Armando Garcia Sancio's std.log
Jose Armando Garcia
jsancio at gmail.com
Tue Mar 6 08:49:24 PST 2012
On Mon, Feb 27, 2012 at 10:10 AM, Kalle Svensson <kalle at ieee.org> wrote:
> Since I'm D n00b I'll just post a couple of observations:
>
> * 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 agree but I am some what hesitant to add this now as it will just
prolongs everything. I think we can add this in the future without
breaking compatibility with code that was written against it.
> ///Kalle
>
More information about the Digitalmars-d
mailing list