<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">D unit of encapsulation is module. Any other "namespace" solutions must die after proper torture.<br>
</blockquote>
<br>
Just use this in the next release!<br>
<br>
extern(C++, log)<br>
{<br>
extern(D):<br>
  ... functions ...<br>
}<br>
</blockquote>
<br></div></div>
Not helping :grumpy:<br>
</blockquote></div><br></div><div class="gmail_extra">Is this where I talk about hierarchical logging?</div><div class="gmail_extra"><br></div><div class="gmail_extra">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).</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">While discussing the proper way to namespace/import logger, can you make it such that doing so gives hierarchical logging?</div><div class="gmail_extra"><br></div>
<div class="gmail_extra"><br></div></div>