logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 51766] Relocate RewriteAppender and UtilLoggingLevel from receivers to log4j
Date Thu, 25 Apr 2013 15:19:27 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51766

Glauber Ribeiro <theglauber@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #2 from Glauber Ribeiro <theglauber@gmail.com> ---
It seems that the DTD for log4j.xml was not updated properly

A xml fragment such as this

<appender name="rewrite" class="org.apache.log4j.rewrite.RewriteAppender">
   <appender-ref ref="console"/>
   <rewritePolicy class="logtest.MyRewriter"/>
</appender>

Causes the following parse error on initialization:

log4j:WARN Continuable parsing error 15 and column 50
log4j:WARN Element type "rewritePolicy" must be declared.
log4j:WARN Continuable parsing error 16 and column 14
log4j:WARN The content of element type "appender" must match
"(errorHandler?,param*,rollingPolicy?,triggeringPolicy?,connectionSource?,layout?,filter*,appender-ref*)".

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


Mime
View raw message