Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 16359 invoked from network); 14 Sep 2006 08:17:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Sep 2006 08:17:31 -0000 Received: (qmail 8273 invoked by uid 500); 14 Sep 2006 08:17:30 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 8072 invoked by uid 500); 14 Sep 2006 08:17:29 -0000 Mailing-List: contact log4net-user-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4NET User" List-Id: Delivered-To: mailing list log4net-user@logging.apache.org Received: (qmail 8055 invoked by uid 99); 14 Sep 2006 08:17:29 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Sep 2006 01:17:29 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of goncalo.luiz@gmail.com designates 64.233.182.188 as permitted sender) Received: from [64.233.182.188] (HELO nf-out-0910.google.com) (64.233.182.188) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Sep 2006 01:17:22 -0700 Received: by nf-out-0910.google.com with SMTP id o60so1967047nfa for ; Thu, 14 Sep 2006 01:16:55 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GuBwWxP/eS3dELSp/K3JuijmNkkLVEl3ZwkZj3xTRo+ibI2sQQ18xm0+CvUdWsou6JfNGigc+VhnLpsfYRkZOSK6mtJfOe3qd6x9XISsklJ8GeqZW8CRL0ykifzT9JDbGlmw+I9giHVWQ+apRh/W+P9tp6YVgKNjeLJUiGF19ik= Received: by 10.49.43.2 with SMTP id v2mr11825991nfj; Thu, 14 Sep 2006 01:16:55 -0700 (PDT) Received: by 10.49.63.10 with HTTP; Thu, 14 Sep 2006 01:16:54 -0700 (PDT) Message-ID: <3eaeced20609140116l24d26f83w61fdae18662eb568@mail.gmail.com> Date: Thu, 14 Sep 2006 09:16:55 +0100 From: "=?ISO-8859-1?Q?Gon=E7alo_Luiz?=" Reply-To: goncalo.luiz@gmail.com To: "Log4NET User" Subject: Re: Accessing all appenders / layouts In-Reply-To: <20060914025003.1103.qmail@web30512.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <3eaeced20609130450l1cb6d2f0kbd134012b987403d@mail.gmail.com> <20060914025003.1103.qmail@web30512.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello, Thank you for you answer. I did check that method that returns only referenced Appenders. I had to subclass Hierarchy and redefine the parse function to add appenders to the bag in the first pass, instead of materializing them only when they're referenced. Thank you, once again. Best Regards, Gon=E7alo Luiz. On 14/09/06, Ron Grabowski wrote: > I don't know if the repository is aware of non-used Appenders. Did you > try this: > > LogManager.GetRepository().GetAppenders(); > > To get the Layouts, you'll need to test each IAppender to see if it is > an AppenderSkeleton. > > --- Gon=E7alo Luiz wrote: > > > Hello, > > > > Is there any way to access all appenders and layouts in the > > configuration file (even those that are not associated to any > > logger?). > > > > I'm using log4net 1.2.10. > > > > Thank you. > > > > Best Regards, > > -- > > Gon=E7alo Luiz > > > > --=20 Gon=E7alo Luiz