[slf4j-dev] [JIRA] Updates for SLF4J-560: Clarify Logger.makeLoggingEventBuilder() method semantics
QOS.CH (JIRA)
noreply-jira at qos.ch
Wed Sep 14 20:43: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
------------------------------
Ceki Gülcü on 14/Sep/22 8:27 PM
[~pkarwasz] Given that in 2.0.1 {{makeLoggingEventBuilder}} always returns an enabled/active builder, you would invoke that method only when you are sure that the logger is enabled for the level in question. Otherwise, you would return {{NOPLoggingEventBuilder.singleton()}}. It is not that complicated, not complicated at all, and this the point.
[~rgoers at apache.org] A developer of a logging implementation may presume 2.0.0 semantics, but the code might run under slf4j 2.0.1 or later. This would be mostly OK too.
==============================
This message was sent by Atlassian Jira (v8.8.0#808000-sha1:e2c7e59)
More information about the slf4j-dev
mailing list