Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 59668 invoked from network); 25 Jul 2005 16:15:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Jul 2005 16:15:13 -0000 Received: (qmail 42591 invoked by uid 500); 25 Jul 2005 16:15:13 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 42394 invoked by uid 500); 25 Jul 2005 16:15:12 -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 42380 invoked by uid 99); 25 Jul 2005 16:15:11 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2005 09:15:11 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_WHOIS,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of amakhija@doubleclick.net designates 216.73.92.202 as permitted sender) Received: from [216.73.92.202] (HELO thcppprfrly02.doubleclick.net) (216.73.92.202) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2005 09:15:05 -0700 Received: from thn-exbh02.doubleclick.net (10.40.0.156) by thcppprfrly02.doubleclick.net with ESMTP; 25 Jul 2005 10:15:10 -0600 Received: from NYC-EXCLS1.dc1.doubleclick.corp ([172.16.100.245]) by thn-exbh02.doubleclick.net with Microsoft SMTPSVC(6.0.3790.1830); Mon, 25 Jul 2005 10:15:09 -0600 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Question Date: Mon, 25 Jul 2005 12:15:08 -0400 Message-ID: <5A6C1980F0E4E5418FC28C29F3B11A32056D1D3D@NYC-EXCLS1.dc1.doubleclick.corp> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Question Thread-Index: AcWRIVJpRbrB1eeCRHKsiCNYDLl4TwAEXcRwAAAyNIA= From: "Makhija, Amit" To: "Log4NET User" X-OriginalArrivalTime: 25 Jul 2005 16:15:09.0743 (UTC) FILETIME=[075783F0:01C59134] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks Nicko for a quick reply. I had a entry in my configuration file as=20 =20 The ref attribute is ponting to a appender which doesn't exist. In this case too the log4net.LogManager.GetRepository().Configured property returns true. Thanks, -Amit Makhija -----Original Message----- From: Nicko Cadell [mailto:nicko@neoworks.com]=20 Sent: Monday, July 25, 2005 12:09 PM To: Log4NET User Subject: RE: Question Log4net is designed not to throw any exceptions up into the main application. http://logging.apache.org/log4net/release/faq.html#reliability You can test if log4net is configured by checking this property: bool isConfiguredOk =3D log4net.LogManager.GetRepository().Configured; Nicko > -----Original Message----- > From: Makhija, Amit [mailto:amakhija@doubleclick.net] > Sent: 25 July 2005 15:01 > To: log4net-user@logging.apache.org > Subject: Question >=20 > Hi, > =20 > I am having a question regarding the initialization of log4net. I am=20 > trying to initialize the log4net in the following manner >=20 > XmlConfigurator.ConfigureAndWatch(new FileInfo(fileName)) >=20 > Even if I pass an invalid ( not well formed) xml it doesn't throw any=20 > exception and doesn't let my application know about it. Even if I pass > a semantically invalid xml ( say with reference to non existing=20 > appender ) to it, it doesn't let my application know that something is > wrong; it just dumps the output on console. I want my application to=20 > know whether log4net is initialized properly or not. How do I go about > this? Is there some property/method, through which I can check the=20 > same? >=20 > =20 >=20 > Thanks, >=20 > -Amit Makhija >=20 > =20 >=20 >=20