This is a library: you can always add names, but it is very hard
to remove them. If next version of std.logger should support
something like logFirstN or logEveryN (ideas from Google log
library). How this should look like? logfnf, logenf...?

c++ does not have foreach(i; 1 .. n)

Sorry that I didn't described how logFirstN and logEveryN work.

Let say you output a log in a loop with 100 iterations.
logFirstN(10, ...) outputs the log message just for the first 10
iterations, and logEveryN(10, ...)  outputs only for 1st, 11th,
21st, .. and 91st iterations.

Reply via email to