Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1530

Fluent Logging no longer works with 1.3.0-alpha5

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.3.0-alpha5
    • Fix Version/s: 1.4.6
    • Component/s: logback-classic
    • Labels:
      None
    • Environment:

      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

            Activity

              People

              Assignee:
              logback-dev Logback dev list
              Reporter:
              hankolerd Daniel Johnson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: