std.logger

Jacob Carlborg doob at me.com
Thu Aug 22 09:17:37 PDT 2013


On 2013-08-22 18:02, Robert Schadek wrote:

> You are properly right, but ultimately I would like to write log(),
> warning(), ... but that did
> not fly last time. log!Warning() would also be fine but that leads to
> other problems.
> Anyway, changing to lower, logLog or something else isn't really a
> problem IMO when
> a consensus has been found.

With my suggestion you can use the with-statement as well if you are 
performing a lot of logging:

with (log)
{
     error("bar");
     info("foo");
}

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list