Review of Jose Armando Garcia Sancio's std.log

Jonathan M Davis jmdavisProg at
Mon Feb 13 10:19:23 PST 2012

On Monday, February 13, 2012 17:49:49 David Nadlinger wrote:
> You define the Severity enum members starting with fatal as 0. Why not
> the other way round – so that severityA < severityB would do what you
> (or at least I) would expect?

syslog defines 0 (LOG_EMERG) as the strongest and 7 (LOG_DEBUG) as the weakest. 
The greater the number, the more logging output, you're going to see. So, he's 
following syslog in that respect, though he doesn't have as many log levels. 
He should probably add at least debug. He also aliases them to module-level 
symbols for some reason, which is a big no-no IMHO.

- Jonathan M Davis

More information about the Digitalmars-d mailing list