Early review of std.logger

Robert Schadek realburner at gmx.de
Tue Oct 15 07:08:02 PDT 2013


On 10/15/2013 03:57 PM, Dicebot wrote:
> 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.
I don't think that there are enough compiler generated marked that you
can pass as default parameter to a free standing function in a way that
you can create a logger that fulfills this need. At some point you
properly have to write a string of and identifier to specify a logger.


More information about the Digitalmars-d mailing list