Details
-
Bug
-
Resolution: Unresolved
-
Major
-
1.3.0-alpha5
-
None
-
slf4j:2.0.0-alpha1, logback-classic:1.3.0-alpha5
Description
Fluent logging results in no-op logging with Logback 1.3.0-alpha5, due to what is seemingly an unnecessary override in ch/qos/logback/classic/Logger.java class that points to a no-op implementation for the LoggingEventBuilder:
@Override public LoggingEventBuilder makeLoggingEventBuilder(org.slf4j.event.Level level) { return new LogbackLoggingEventBuilder(this, level); }
The LogbackLoggingEventBuilder class is all no-op methods with TODO markers, which was added in a commit last August with commit message "ongoing work".
Based on my very limited understanding, SLF4J 2.0 provides a default implementation for this method, and Logback does not need to override it.
By switching back to Logback 1.3.0-alpha4, fluent logging works as expected.
Attachments
Issue Links
- relates to (in)
-
SLF4J-533 Add support for LocationAwareLogger to DefaultLoggingEventBuilder's fallback path
- Open