std.logger

BS bumnutbarry at gmail.com
Thu Aug 22 15:53:36 PDT 2013


I hope this gets up, I've been waiting for a std.logger for a 
while.

My custom one works fine but it's extra sideline code to compile, 
maintain and lug around.

As for naming, I like the following

log.whisper("low priority log message")
log.say("default log level");
log.shout("Warning level");
log.scream("**ERROR**");

:D

To be honest I don't really care about the naming, but if pressed 
I'd go for

log("default")
log.warn("a warning")
log.error("an error")

...or something similar. I just find it easier to read than 
logWarning, logError etc.


/BS



More information about the Digitalmars-d mailing list