Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 74694 invoked from network); 5 Feb 2008 12:21:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Feb 2008 12:21:13 -0000 Received: (qmail 33979 invoked by uid 500); 5 Feb 2008 12:21:04 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 33957 invoked by uid 500); 5 Feb 2008 12:21:03 -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 33946 invoked by uid 99); 5 Feb 2008 12:21:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2008 04:21:03 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2008 12:20:34 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JMMn3-0002OT-La for log4net-user@logging.apache.org; Tue, 05 Feb 2008 04:20:41 -0800 Message-ID: <15289024.post@talk.nabble.com> Date: Tue, 5 Feb 2008 04:20:41 -0800 (PST) From: jeusdi To: log4net-user@logging.apache.org Subject: Log4Net used into Class library MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: cabrejcr@terra.es X-Virus-Checked: Checked by ClamAV on apache.org I'm develping a little library, and I'm adding log features to it, now. The problem is that I don't know How I Can configure Log4Net. In my code I obtain a logger as: private log4net.ILog logger = log4net.LogManager.GetLogger(typeof(OnCloseSessionManager)) but, when I need to use it (the logger), it is null. I also have this line in my code: [assembly: log4net.Config.XmlConfigurator(ConfigFile="log4net.xml", Watch=true)] but, the logger is null, yet. The beliee that this line find around the application directory files as log4net.xml and configure the logs using this xml file... The log4net.xml file of my application (application that uses my class library) is: Can you help me please? I will appreciate a lot your help. Thanks for all. -- View this message in context: http://www.nabble.com/Log4Net-used-into-Class-library-tp15289024p15289024.html Sent from the Log4net - Users mailing list archive at Nabble.com.