Voting: std.logger

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 30 07:59:20 PDT 2014


On 7/30/14, 2:22 AM, "Marc Schütz" <schuetzm at gmx.net>" wrote:
> On Tuesday, 29 July 2014 at 23:09:28 UTC, Robert burner Schadek wrote:
>> On Tuesday, 29 July 2014 at 06:09:25 UTC, Andrei Alexandrescu wrote:
>>> 4. Replace defaultLogger with theLog. "Logger" is a word, but one
>>> that means "lumberjack" so it doesn't have the appropriate semantics.
>>> The use is generally acceptable as a nice play on words and as a
>>> disambiguator between the verb "to log" and the noun "log". When we
>>> actually want to talk about the current log in an application, we
>>> should, however, call it "the log". This is negotiable.
>>
>> I really don't care how a global Logger instance is called. Anyone
>> else has an opinion on this? Otherwise Andrei wins.
>
> I don't see anything wrong with "logger". A "driver" is something that
> drives (a device), a "logger" is something that logs.

Such logic doesn't apply to vocabularies. Is an "irater" someone who 
irates, a "messer" someone who creates a mess etc?

> Just "log" would
> be ok, too. Both are in common use, and are terms that I would use
> intuitively.
>
> "defaultLogger" or "currentLogger" might also be ok, but don't read as
> nicely. But please not "theLogger".

Sure not, it's theLog. I'm okay with stdlog.


Andrei



More information about the Digitalmars-d mailing list