Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 29072 invoked from network); 25 Apr 2008 12:59:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Apr 2008 12:59:24 -0000 Received: (qmail 50108 invoked by uid 500); 25 Apr 2008 12:59:25 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 49745 invoked by uid 500); 25 Apr 2008 12:59:24 -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 49733 invoked by uid 99); 25 Apr 2008 12:59:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Apr 2008 05:59:24 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of WaldenL@techsoftinc.com designates 216.150.133.132 as permitted sender) Received: from [216.150.133.132] (HELO ex2.techsoftwareinc.com) (216.150.133.132) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Apr 2008 12:58:39 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-MIMEOLE: Produced By Microsoft Exchange V6.5 Subject: RE: Moving log4net config out of App.config Date: Fri, 25 Apr 2008 08:58:20 -0400 Message-ID: <43A10173A6B4F54BACFACFB39EBD47551E6A6B@ex2.techsoftwareinc.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Moving log4net config out of App.config Thread-Index: AcilQGDPCp6U/dWtSYG57eTKBjJZ5QBkyF8g References: <16834575.post@talk.nabble.com> From: "Walden H. Leverich" To: "Log4NET User" X-Virus-Checked: Checked by ClamAV on apache.org How are you "starting" the logging? We use log4net heavily in our apps, and we always store the config in log4net.config, but we explicitly start logging with something along the lines of: string configFile =3D Server.MapPath(ConfigurationManager.AppSettings["log4net-config-file"]); log4net.Config.XmlConfigurator.ConfigureAndWatch(new System.IO.FileInfo(configFile)); log =3D log4net.LogManager.GetLogger( System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); log.Info("-----------Logging Started------------"); log.Info("Application Started."); log.InfoFormat("Watching log4net config file '{0}'", configFile);=20 --=20 Walden H Leverich III Tech Software (516) 627-3800 x3051 WaldenL@TechSoftInc.com http://www.TechSoftInc.com Quiquid latine dictum sit altum viditur. (Whatever is said in Latin seems profound.) -----Original Message----- From: aus1977 [mailto:aus1977@gmail.com]=20 Sent: Wednesday, April 23, 2008 8:48 AM To: log4net-user@logging.apache.org Subject: Moving log4net config out of App.config I need to move log4net configuration from app.config file and i have tryed the following : app.config file : log4net.config file: =20 =20 it is doesn't works=20 --=20 View this message in context: http://www.nabble.com/Moving-log4net-config-out-of-App.config-tp16834575 p16834575.html Sent from the Log4net - Users mailing list archive at Nabble.com.