Bug 51766 - Relocate RewriteAppender and UtilLoggingLevel from receivers to log4j
Summary: Relocate RewriteAppender and UtilLoggingLevel from receivers to log4j
Alias: None
Product: Log4j - Now in Jira
Classification: Unclassified
Component: Appender (show other bugs)
Version: 1.2
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: log4j-dev
Depends on:
Reported: 2011-09-06 03:21 UTC by Curt Arnold
Modified: 2013-04-25 15:19 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Curt Arnold 2011-09-06 03:21:35 UTC
Move org.apache.log4j.rewrite package and org.apache.log4j.helpers.UtilLoggingLevel from the to-be-discontinued receivers companion to log4j.
Comment 1 Curt Arnold 2011-09-06 03:35:07 UTC
Committed rev 1165491.
Comment 2 Glauber Ribeiro 2013-04-25 15:19:27 UTC
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"/>

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*)".