Review: std.logger
Robert burner Schadek via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jul 15 01:01:10 PDT 2014
On Tuesday, 15 July 2014 at 07:31:39 UTC, Dragos Carp wrote:
>>> +1 for not having the conditional log
>>
>> Not so sure about that. -- Andrei
>
> I agree that the conditional could be useful. But I think that
> the current API definition where we already have some strange
> letter combinations ('l', 'c', 'f') is an one-way street, that
> throws away some good possibilities to extend it later. Should
> we keep adding cryptic letters? That is the reason why I think
> it is better to let out the conditional log for now.
>
> errorIf - looks D-like
> errorc - is at most C-like
>
> The argument that writef/-ln also contain some cryptic letters
> have historical reasons and should not motivate us to add some
> more.
I wouldn't call them cryptic, they are in fact very easy.
l = LogLevel
c = conditional
f = printf
what is so difficult about them. Sure errorIf looks easier, but
what
about errorLogLevelIfPrintfFormat in comparison to errorlcf
More information about the Digitalmars-d
mailing list