Voting: std.logger

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Fri Sep 5 11:27:11 PDT 2014


On Friday, 5 September 2014 at 18:24:01 UTC, Dicebot wrote:
> Ok, this is much more specific. With a similar concerns in mind 
> I have proposed to add a `log` overload that doesn't have 
> variadic arguments and takes a single pre-formatted string 
> (with file/line/module as default run-time arguments). With a 
> custom formatting function (compile-time or run-time at users 
> choice) it should fit these requirements. Does that sounds 
> feasible to you?

P.S. Reason why compile-time format checking can't be added to 
base API is rather simple - it needs to be at least somewhat 
similar to one of writefln


More information about the Digitalmars-d mailing list