Early review of std.logger

Robert Schadek realburner at gmx.de
Mon Oct 14 06:24:50 PDT 2013


On 10/14/2013 02:51 PM, Andrea Fontana wrote:
> Just for comparison, on Android you can write something like:
> FileLogger.w(...)  instead of FileLogger.log(LogLevel.Warning...)
>
> (and there's a "wtf" loglevel for "temporary" debugging)
>
hm, I don't really like it. To me it sounds like, "I'm don't care about
log level just print this". Maybe changing the LogLevel type to an int
like "debug(int) { " would be an idea and than providing some immutable
int Info = 1, Debug = 256, Error = 1024 ...  would be a idea.


More information about the Digitalmars-d mailing list