Bug 51766 - Relocate RewriteAppender and UtilLoggingLevel from receivers to log4j
Relocate RewriteAppender and UtilLoggingLevel from receivers to log4j
Status: REOPENED
Product: Log4j
Classification: Unclassified
Component: Appender
1.2
PC Linux
: P2 normal
: ---
Assigned To: log4j-dev
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2011-09-06 03:21 UTC by Curt Arnold
Modified: 2013-04-25 15:19 UTC (History)
0 users



Attachments

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