[slf4j-dev] [JIRA] Updates for SLF4J-560: Clarify Logger.makeLoggingEventBuilder() method semantics

QOS.CH (JIRA) noreply-jira at qos.ch
Wed Sep 14 19:58:00 CEST 2022


SLF4J / SLF4J-560 [Resolved]
Clarify Logger.makeLoggingEventBuilder() method semantics

==============================

Here's what changed in this issue in the last few minutes.

There is 1 comment.

View or comment on issue using this link
https://jira.qos.ch/browse/SLF4J-560

==============================
 1 comment
------------------------------

Piotr P. Karwasz on 14/Sep/22 7:45 PM
[~ceki],

I understand how to implement these changes, but I don't understand their ultimate goal.

If my logger has a level of {{INFO}} and I call {{makeLoggingEventBuilder(DEBUG)}} after this change I need to return {{Log4jEventBuilder(LogBuilder.NOOP)}}, which performs some work (stores parameters, message, etc.), but never logs anything.

In the previous version I could return SLF4J's {{NOPLoggingEventBuilder}}.

Can you provide an example where this change has a functional difference? The only application I can think of is to create a {{LoggingEventBuilder}} to use later, after the logger level changes.


==============================
 This message was sent by Atlassian Jira (v8.8.0#808000-sha1:e2c7e59)



More information about the slf4j-dev mailing list