Review of Jose Armando Garcia Sancio's std.log

Andrei Alexandrescu SeeWebsiteForEmail at
Mon Feb 13 19:18:44 PST 2012

On 2/13/12 8:28 PM, Jose Armando Garcia wrote:
> On Mon, Feb 13, 2012 at 6:44 PM, jdrewsen<jdrewsen at>  wrote:
>> A first quick observation:
>> I vote for a debug severity level. Then make that default to the template
>> parameter for log:
>> template log(Severity severity = Severity.debug)
>> That would make it nice for good old print debugging.
>> log("This is a dbg message");
> I like the idea of having a default. Not sure about adding debug. What
> are you trying to do with default that log!info and vlog(#) doesn't
> let you do?

Let's not forget we could always do

   debug log(stuff);


More information about the Digitalmars-d mailing list