Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    oh the naming is terrible :( Commented May 12, 2022 at 14:39
  • 3
    boom! jira.qos.ch/browse/… atLevel :) thank gosh! Commented May 12, 2022 at 14:46
  • 1
    logger.atLevel is the right one. Per the javadoc logAMessageAtGivenLevel is intended to be used by logging systems implementing the SLF4J API and not by end users. Commented Nov 27, 2022 at 0:03
  • Changed my answer to use "atLevel()" method instead of "makeLoggingEventBuilder()" method. The latter is intended for use by logging systems and not end users. Commented Nov 29, 2022 at 22:28
  • I am trying to use this but I noticed there isn't a warn level. Which level should I use for that? Commented Dec 4, 2023 at 20:10