My app produces a high amount of info and debug logs, so in production the level is configured to “warning”. Are the contents of lower levels logs (info and debug) evaluated?
In other words, is the following log string evaluated even though it is not written to output?
This is no longer true. Now both these ways are mostly equivalent and passing function as a first argument is no longer needed for lazy evaluation of the message.