3 ms·
Well, since Java evaluates method arguments all the time, if you have a computationally-heavy argument, then it is better to check debug level: if(log.isInfo
by reader_1000 9y ago
Well, since Java evaluates method arguments all the time, if you have a computationally-heavy argument, then it is better to check debug level:
if(log.isInfoEnabled()) {
log.info("Foo: {}", someHeavyOperationThatReturnsString());
}