logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47960] New: appender-ref children in appender element
Date Thu, 08 Oct 2009 07:26:32 GMT

           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: log4j-dev@logging.apache.org
        ReportedBy: herijunk@gmx.ch

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

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
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: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org

View raw message