Early review of std.logger

Dicebot public at dicebot.lv
Tue Oct 15 06:57:29 PDT 2013


On Tuesday, 15 October 2013 at 13:52:17 UTC, Robert Schadek wrote:
> I think this is good, as it gives you a way to quite libraries 
> down. The
> idea behind the free standing "log" function is to provide an 
> ultra easy
> way to log. It is not meant to be used for the 2<<31 line 
> program. In
> that case you will properly have very specific needs on how to 
> log.
> Hence implement the abstract Logger class to your needs.

I'll consider any logging library that forces me to use logger 
instance explicitly for typical tasks a failure. Once the system 
is configured upon program startup, using free functions and/or 
system-wide defaults should be enough.


More information about the Digitalmars-d mailing list