Add (experimental) conditional print based on lambda
terrillmoore opened this issue · comments
gLog.printf(flags, "format", ...)
always evaluates its arguments, even if the print is skipped.
Add gLog.cond(flags, [&]{){ .... })
, which calls the ... code only if enabled by the flag values and the log settings.