On 12/04/2014 03:32 PM, 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);
That's a bit shorter but similar to what I already proposed here
http://forum.dlang.org/post/[email protected].
Something along this line would still be a good solution IMO.