Implementing std.log

Jonas Drewsen jdrewsen at nospam.com
Mon May 16 06:18:30 PDT 2011


On 14/05/11 19.04, Andrei Alexandrescu wrote:
> On 5/9/11 1:52 AM, Andrei Alexandrescu wrote:
> [snip]
>
> I updated my std.log draft. Added a lot of features including formatted
> writing, delayed logging, and a variety of configuration options.
> Replaced the redundant log.xyz with logXyz. The implementation is
> getting close to reviewable form.
>
> Documentation:
>
> http://d-programming-language.org/phobos-prerelease/std_log.html
>
> Source:
>
> https://github.com/andralex/phobos
>
> Feedback welcome.
>

I like it!

Some minor suggestions:

The command line flags seem inconsistent in their naming e.g 
--minloglevel vs. --log_dir (the latter using underscores).
Also single letter flags are usually written with a single '-' in front 
instead of '--' at least on posix platforms.

/Jonas


More information about the Digitalmars-d mailing list