Most common pattern, when doing logging, is currently this:
if(logger.isLEVEL()
logger.LEVEL(.......);
Some could say, that these checks “blow” up the code… But what if the LEVEL(…) call itself would check the “isLEVEL()” ? The code would be a little bit cleaner, isn’t it ?
logger.LEVEL(.......);
Our internal logger does this, and I ran into the pitfall But we still do (sometimes) check for the log_level, before calling...
more »