Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 36347 invoked from network); 24 Apr 2006 13:41:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Apr 2006 13:41:20 -0000 Received: (qmail 43198 invoked by uid 500); 24 Apr 2006 13:41:14 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 43153 invoked by uid 500); 24 Apr 2006 13:41:13 -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 43141 invoked by uid 99); 24 Apr 2006 13:41:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Apr 2006 06:41:13 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [64.202.165.224] (HELO smtpout06-04.prod.mesa1.secureserver.net) (64.202.165.224) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 24 Apr 2006 06:41:12 -0700 Received: (qmail 6767 invoked from network); 24 Apr 2006 13:40:51 -0000 Received: from unknown (216.15.121.89) by smtpout06-04.prod.mesa1.secureserver.net (64.202.165.227) with ESMTP; 24 Apr 2006 13:40:51 -0000 From: "Irene Altdorf" To: "'Log4NET User'" Subject: RE: Interface method to request the level of a Logger? Date: Mon, 24 Apr 2006 09:40:59 -0400 Message-ID: <009001c667a4$b95e72b0$3102a8c0@goodkind.avalere.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcZnGsAYccw3QOhJRTa7O/OTTHtGrwACLAIQACAycFA= X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 In-Reply-To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks for your quick response, Nicko. I tried this, but even though the logger level was error (I tested 'log.IsErrorEnabled' just before the code you suggested), the line below had 'null' for the level. Would there be a way around this? Thanks again, Irene -----Original Message----- From: Nicko Cadell [mailto:nicko@neoworks.com] Sent: Sunday, April 23, 2006 6:17 PM To: Log4NET User Subject: RE: Interface method to request the level of a Logger? Try: ((log4net.Repository.Hierarchy.Logger)(log.Logger)).Level Nicko > -----Original Message----- > From: Irene Altdorf [mailto:ialtdorf@avalere.com] > Sent: 23 April 2006 22:13 > To: log4net-user@logging.apache.org > Subject: Interface method to request the level of a Logger? > > Hello, > > > > Is there an interface method to get the current level of a > Logger? Using the ILog interface, I can determine whether > certain levels are enabled via the IsxxxEnabled property, but > I was hoping to be able to make one call to get the current > Logger level. It might seem like an odd request, but we will > be passing that info on to a lower level component. > > > > Sorry if I have missed something obvious. > > > > Thanks, > > Irene > > > >