[logback-dev] [JIRA] Resolved: (LBCORE-74) Converters do not work in all appenders

Ceki Gulcu (JIRA) noreply-jira at qos.ch
Sun Dec 28 20:32:38 CET 2008


     [ http://jira.qos.ch/browse/LBCORE-74?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ceki Gulcu resolved LBCORE-74.
------------------------------

    Fix Version/s: 0.9.14
       Resolution: Fixed

Hello Natan,

Thank you for filing this report. As you have already identified, HTMLLayoutBase does not take into account custom converter words whereas PatternLayout does take them into account. This problem was fixed in revision 2106.

> Converters do not work in all appenders
> ---------------------------------------
>
>                 Key: LBCORE-74
>                 URL: http://jira.qos.ch/browse/LBCORE-74
>             Project: logback-core
>          Issue Type: Improvement
>          Components: Pattern
>    Affects Versions: 0.9.11
>            Reporter: Natan Cox
>            Assignee: Logback dev list
>             Fix For: 0.9.14
>
>
> 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?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the logback-dev mailing list