3 ms·
No good if you're computing the message somehow. e.g. logger.debug(generateSomethingLarge());
by jestar_jokin 10y ago
No good if you're computing the message somehow. e.g.
logger.debug(generateSomethingLarge());
- CHY872 10y agoGenerally you would log with placeholders, like logger.debug("My logger message has placeholders {}, {}, {}", some, objects, toLog); which avoids the issue.