Implementing std.log

Sean Kelly sean at invisibleduck.org
Wed Apr 20 09:35:33 PDT 2011


On Apr 20, 2011, at 9:23 AM, Andrei Alexandrescu wrote:
> 
> Generally, I think a good logging library should:
> 
> - be small and simple to use
> 
> - allow defining arbitrary backends
> 
> - allow switching backends dynamically
> 
> - offer compile-time control, including zero overhead "all logging off"
> 
> - offer run-time control
> 
> I favor glog, which fulfills all of the above.

It does so using macros and IOStreams though.  Or is there a printf-style interface I didn't see?


More information about the Digitalmars-d mailing list