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

Converters do not work in all appenders

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: logback-core
    • Labels:
      None

      Description

      I'm trying to use a converter in HtmlLayout but it was not logged correctly. I'm basically getting a "PARSER_ERRER".

      I checked the code and found

      HTMLLayoutBase.start() does this.head = p.compile(t, getDefaultConverterMap());

      where
      protected Map<String, String> getDefaultConverterMap()

      { return PatternLayout.defaultConverterMap; }

      But PatternLayoutBase.start() does this.head = p.compile(t, getEffectiveConverterMap());
      and getEffectiveConverterMap loads the extra converters.

      This is probably in issue in other Appenders too. Maybe the solution can be generified to make it work for every appender?

        Attachments

          Activity

            People

            • Assignee:
              logback-dev Logback dev list
              Reporter:
              natan.cox Natan Cox
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: