LogLevel [was std.experimental.logger formal review round 3]

Martin Nowak via Digitalmars-d digitalmars-d at puremagic.com
Thu Dec 4 22:14:04 PST 2014


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/m2k13k$12vf$1@digitalmars.com.
Something along this line would still be a good solution IMO.


More information about the Digitalmars-d mailing list