Implementing std.log

Robert Clipsham robert at octarineparrot.com
Mon May 9 11:33:19 PDT 2011


On 09/05/2011 19:30, Robert Clipsham wrote:
> The example looks great, exactly what I'd hope for in the way of a
> logging library. A few questions:
>
> * How do you disable logging at compile time? (and is it zero overhead?)
> * How do you define your own logging backend?
> * Is it possible to change logging options after initialisation?
>
> There are a couple of features missing, but you seem to have mentioned
> planning to implement these elsewhere in the thread. Once they're in
> place I'd be happy to vote yes to its inclusion into phobos.

One more question:

  * Can you log using formatting, or do you have to wrap the call in a 
call to format()? eg.
----
log.info("My %s string %s", "format", 3);
----

-- 
Robert
http://octarineparrot.com/


More information about the Digitalmars-d mailing list