On Thursday, 4 December 2014 at 14:32:27 UTC, Daniel Murphy wrote:
FWIW I don't really like this - it feels like a hack. I'd
rather just declare a private logger alias (or something like
that) and use that in the library. Decision can be made at
compile time, doesn't require reverse module imports, doesn't
depend on global versions.
eg
alias libraryLogger = std.logger.FilteredLogger!(LogLevel.info);
I agree with Daniel here. It feels like seeking for too much
magic just because it is cool - while more simple and
straightforward approach can do the job as well.