logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "DeSantis, MJ Mark @ IS (7179)" <Mark.J.DeSan...@L-3Com.com>
Subject JoranConfigurator and rollingPolicy, triggerPolicy, and filter
Date Wed, 14 Sep 2005 14:25:47 GMT
Can anyone resolve my confusion?
The way I understand how the new joranconfigurator works is that there is an
actionclass associated with each tag in a log4j xml configuration file. How
then, if there is say a rolling file appender in the config file which has
the children rollingPolicy, triggerPolicy, and filter, does the
joranconfigurator act on these tags since there seems to be no actionclasses
for them in the org.apache.log4j.joran.action package. 
If I turn log4j internal degbugging on I notice that the joran goes through
and configures the appender using the
org.apache.log4j.joran.action.AppenderAction class but when it hits the
rollingPolicy triggerPolicy or filter tags it seems to pretty much skip them
but handles their param tags okay. And yet when I'm actually using the
appender, at least the filter works okay (I haven't actually tested to see
if it rolls or not).
Confusion abounds!
The main reason I ask is that I want to code a custom TableModelAppender and
have it be instantiated from the config file but I would like to have one of
its child param tags (or a custom tableModel tag) specify the tablemodel
class to append to. I would like to do this without having to write Action
classes for joran, and see that the rollingPolicy, triggerPolicy, and filter
seemed to be able to do this made me hopeful. Any suggestions would help

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message