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.

[[email protected]] 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)

_______________________________________________
slf4j-dev mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/slf4j-dev

Reply via email to