Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 60875 invoked from network); 14 Sep 2005 20:32:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Sep 2005 20:32:25 -0000 Received: (qmail 8375 invoked by uid 500); 14 Sep 2005 20:32:22 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 8136 invoked by uid 500); 14 Sep 2005 20:32:21 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 8123 invoked by uid 99); 14 Sep 2005 20:32:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2005 13:32:21 -0700 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [148.104.5.19] (HELO isDNS2.is.l-3com.com) (148.104.5.19) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2005 13:32:30 -0700 Received: from gvlmailhub.gvl.l-3com.com (gvlmailhub.gvl.is.l-3com.com [138.254.134.153]) by isDNS2.is.l-3com.com (8.12.8/8.12.8) with ESMTP id j8EKWE1N022769 for ; Wed, 14 Sep 2005 15:32:14 -0500 Received: from gvlexch01.gvl.is.l-3com.com (gvlexch01.gvl.is.l-3com.com [138.254.134.121]) by gvlmailhub.gvl.l-3com.com (8.11.6/8.11.6) with ESMTP id j8EKW9e21208 for ; Wed, 14 Sep 2005 15:32:09 -0500 Received: by gvlexch01.gvl.is.l-3com.com with Internet Mail Service (5.5.2657.72) id ; Wed, 14 Sep 2005 15:32:09 -0500 Message-ID: <7736DD1D5D6EDD4081B590872B56DCCC09A563EC@gvlexch01.gvl.is.l-3com.com> From: "DeSantis, MJ Mark @ IS (7179)" To: "'Log4J Users List'" Subject: RE: JoranConfigurator and rollingPolicy, triggerPolicy, and filte r Date: Wed, 14 Sep 2005 15:32:08 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks for the reply Scott, I, of course, breezed over the ImplicitAction class and did not grasp a good knowledge of what it did. Thanks for pointing it out. I'll look into the ChainsawAppender and see how that works for me. I might be back... Thanks again for the suggestions. A+ Mark -----Original Message----- From: Scott Deboy [mailto:sdeboy@comotivsystems.com] Sent: Wednesday, September 14, 2005 11:49 AM To: Log4J Users List Subject: RE: JoranConfigurator and rollingPolicy, triggerPolicy, and filter Ceki is the authority on this stuff. See AndFilter for an example of something that uses implicit actions (the tag names are the key, if I recall). Maybe you could use something like the generic 'ChainsawAppender', which instantiates a 'viewerClass' and calls the 'activateViewer' method, from which you could register it (or another class) as an appender through the 'setAppender' callback. Scott -----Original Message----- From: DeSantis, MJ Mark @ IS (7179) [mailto:Mark.J.DeSantis@L-3Com.com] Sent: Wednesday, September 14, 2005 7:26 AM To: 'log4j-user@logging.apache.org' Subject: JoranConfigurator and rollingPolicy, triggerPolicy, and filter 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 greatly. Thanks. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org