[logback-dev] [JIRA] Resolved: (LBCORE-56) AppenderBase getLayout returns null

Ceki Gulcu (JIRA) noreply-jira at qos.ch
Mon Oct 20 15:30:21 CEST 2008


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

Ceki Gulcu resolved LBCORE-56.
------------------------------

    Resolution: Won't Fix

Hello Thilo,

There pros and cons to various approachec. An abstract setter/getter for
layout would make it more obvious that these two methods need to be
implemented by each appender, on the con side, existing appenders not
using a layout need to be modified. Frankly speaking, I expect
developers wishing to implement their own appenders to look at the
code.

The justification is too subtle to merit change. Leaving the code as is.

> AppenderBase getLayout returns null
> -----------------------------------
>
>                 Key: LBCORE-56
>                 URL: http://jira.qos.ch/browse/LBCORE-56
>             Project: logback-core
>          Issue Type: Bug
>          Components: Appender
>    Affects Versions: 0.9.9
>         Environment: Linux
>            Reporter: Thilo Tanner
>            Assignee: Ceki Gulcu
>            Priority: Minor
>
> AppenderBase getter and setter for layout aren't abstract. Because the setter drops any value and the getter returns null, overriding the class can be very cumbersome, if you don't hav access to the source code of AppenderBase. Please make the methods abstract or introduce a layout member.

-- 
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