On Wed, 20 Apr 2011 19:35:33 +0300, Sean Kelly <s...@invisibleduck.org> wrote:

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?

Probably the reason is that until now there wasn't a way to make printf typesafe in C++, no variadic templates.
In D, i don't think iostream-like design has any merits.

Reply via email to