Review: std.logger

sigod via Digitalmars-d digitalmars-d at puremagic.com
Sun Jul 13 05:41:58 PDT 2014


On Saturday, 12 July 2014 at 16:13:22 UTC, Sönke Ludwig wrote:
>  - The functions error(), info(), fatal(), etc. don't follow 
> the usual rule for functions to start with a verb. The question 
> is if saving three characters over logError() is worth making 
> the code more ambiguous for the outside reader (e.g. "does 
> error() throw an exception? or set some internal error state?" 
> "does fatal() terminate the process?")

I use my own log module like this:
```
import log = util.log;

log.info(...);
log.debug(...);
// etc
```


More information about the Digitalmars-d mailing list