Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 97725 invoked from network); 17 Jul 2008 12:12:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jul 2008 12:12:20 -0000 Received: (qmail 54972 invoked by uid 500); 17 Jul 2008 12:12:19 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 54581 invoked by uid 500); 17 Jul 2008 12:12:18 -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 54570 invoked by uid 99); 17 Jul 2008 12:12:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jul 2008 05:12:18 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of algidovo@gmail.com designates 74.125.44.153 as permitted sender) Received: from [74.125.44.153] (HELO yx-out-1718.google.com) (74.125.44.153) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jul 2008 12:11:07 +0000 Received: by yx-out-1718.google.com with SMTP id 4so1629953yxp.40 for ; Thu, 17 Jul 2008 05:11:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=2P+TWSTOEQsHAFpz7dlX/S66YH8yCD5ZehL6JCw+9w8=; b=DzktZ0R1vBGIG9c5Pmw/y0UqpM2XEaHbvS6w3Z12etRjIKUwSOV0uKRWNOzO0QEnLE iny7HuwP53nXkbzpZT1n86lO9+KRaW4w2hJIIx6M0K03SG4Wz4If8DEuNrS50rkae9yt QaEq6dYeVFs7C6YCMQmwoBo3mQtzcVGbcxSMI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=Yfchnhg+zWArKn7lu1evEc2hZRI2+nrPKhU1cGXQaDTDvr+d9gl9LFmbgMI563eaZl 64DrX0xLMisHxNWLu4wQ/Yz5hTP0FF67lGUBLcfefmPtcobLccF64gdSq9GibhtJeYB0 FrV6y/0UihvYCWbreqK/4w+lfmH1w44TS36kQ= Received: by 10.103.225.11 with SMTP id c11mr1870628mur.32.1216296687049; Thu, 17 Jul 2008 05:11:27 -0700 (PDT) Received: from ?172.16.18.22? ( [212.80.64.14]) by mx.google.com with ESMTPS id i5sm13131889mue.2.2008.07.17.05.11.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 17 Jul 2008 05:11:26 -0700 (PDT) Message-ID: <487F36E5.8090502@gmail.com> Date: Thu, 17 Jul 2008 14:11:17 +0200 From: =?UTF-8?B?QWxlxaEgVm9qw6HEjWVr?= User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: log4net-user@logging.apache.org Subject: XML configuration, windows service Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I'm using [assembly: log4net.Config.XmlConfigurator(ConfigFileExtension = "conflog", Watch = true)] in AssemblyInfo.cs Almost everything works fine. When I started service without config file there is no problem, simply service does not generate log. Then I add config file into service directory, again everything works fine, it starts logging. If I change config file then the configuration change and again everything is ok. But when I delete config file then service still loging, I hoped that it stops logging. How to do that, I know that it can be done using change config file instead of deleting it, but I need some more simple solution, because it wil be used by our customers which has no knowledge about editing files. I hoped that I will send them config file, which they simply copy into app directory, then they send me log file back and then delete config file. All without restarting service. Can you someone help me with that? A.