https://issues.apache.org/bugzilla/show_bug.cgi?id=47960

           Summary: appender-ref children in appender element
           Product: Log4j
           Version: 1.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Configurator
        AssignedTo: [email protected]
        ReportedBy: [email protected]


The appender tag of xml configuration allows formally to be like that:

    <appender name="STANDARD_APPENDERS" class="">
        <appender-ref ref="CONSOLE.ERR"/>
        <appender-ref ref="CONSOLE.OUT"/>
        <appender-ref ref="FILE"/>
    </appender>

According to DTD:

<!ELEMENT appender (errorHandler?, param*, layout?, filter*, appender-ref*)>
<!ATTLIST appender
  name          ID      #REQUIRED
  class         CDATA   #REQUIRED
>

The current implementation of log4j (1.2.15) cannot resolve such a construct
(empty class attribute -> ClassNotFountException)

My propsal:
1. Allow an empty class attribute if the children are only appender-ref
elements.
2. Resolve a reference to such an appender declaration like there would be all
three appender-ref's (in logger or other appender declarations).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to