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

Allow LayoutWrappingEncoder to have a parent of a type other than Appender

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.3.0-alpha6, 1.2.5
    • 1.2.1, 1.2.2, 1.3.0-alpha0, 1.2.3
    • logback-core
    • None

    Description

      A backwards incompatible change was introduced in 1.2.1 that forced LayoutWrapperEncoder to only be able to have a parent of type Appender.

      Specifically, this change

       
      This broke functionality in downstream projects that allow an encoder to be embedded with another encoder (specifically for prefix/suffix support).

       
      It would be great if LayoutWrappingEncoder.setParent was changed to allow an Encoder or Appender as a parent, so that downstream projects can continue to allow encoders within other encoders.

       

      I have submitted PR #383 to allow this.

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            philsttr Phil
            Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: