Hacker News new | ask | show | jobs
by jestar_jokin 3618 days ago
No good if you're computing the message somehow. e.g.

    logger.debug(generateSomethingLarge());
1 comments

Generally you would log with placeholders, like

    logger.debug("My logger message has placeholders {}, {}, {}", some, objects, toLog);
which avoids the issue.