Implementing std.log
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Wed Apr 20 09:55:35 PDT 2011
On 4/20/11 11:35 AM, Sean Kelly 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?
The interface would of course be adapted to D.
Andrei
More information about the Digitalmars-d
mailing list