Review: std.logger

Jeremy Powers via Digitalmars-d digitalmars-d at puremagic.com
Mon Jul 14 10:44:27 PDT 2014


>
> D unit of encapsulation is module. Any other "namespace" solutions must
>>> die after proper torture.
>>>
>>
>> Just use this in the next release!
>>
>> extern(C++, log)
>> {
>> extern(D):
>>   ... functions ...
>> }
>>
>
> Not helping :grumpy:
>

Is this where I talk about hierarchical logging?

There was some talk in the original review thread about having each log
import create or tag the log with the module, so one could refer to and
filter by modules.  In java land you get a logger instance per class, in a
tree based on package hierarchy, and can then configure output levels
differently for various places in the hierarchy - very useful (esp. with
runtime configuration).

While discussing the proper way to namespace/import logger, can you make it
such that doing so gives hierarchical logging?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20140714/37b48ab3/attachment.html>


More information about the Digitalmars-d mailing list