<div dir="ltr">On Mon, Oct 14, 2013 at 2:27 PM, Dicebot <span dir="ltr"><<a href="mailto:public@dicebot.lv" target="_blank">public@dicebot.lv</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">I'd like to have module-specific logging _without_ creating local module instance. And without referring to specific logger at all. As I have mentioned, something like:<br></div>
```<br>
import log = std.logger;<br>
<a href="http://log.local.info" target="_blank">log.local.info</a>(...); // uses special default logger that inspects __MODULE__<br>
log.global.error(...); // uses normal default logger<br>
<br>
```<br>
</blockquote><div><br></div><div>This idea sounds great (esp. if paired with hierarchical loggers I have been talking about). If I'm importing std.logger, chances are I am going to create a logger for the module.</div>
<div>Would eliminate a bunch of boilerplate 'logger log = logfactory.getMeALog(modulename)'</div><div><br></div><div><br></div></div>