Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 12187 invoked from network); 19 May 2008 21:51:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 May 2008 21:51:41 -0000 Received: (qmail 36869 invoked by uid 500); 19 May 2008 21:51:41 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 36836 invoked by uid 500); 19 May 2008 21:51:41 -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 36819 invoked by uid 99); 19 May 2008 21:51:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 May 2008 14:51:41 -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: local policy) Received: from [68.142.200.118] (HELO web30505.mail.mud.yahoo.com) (68.142.200.118) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 19 May 2008 21:50:51 +0000 Received: (qmail 46503 invoked by uid 60001); 19 May 2008 21:51:03 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=PgaFJOjbfNsBBXd86OLltGOjFl7lEDf+NRaMnJwVlq9Xdaqa32mk5Z5/tNCImQM2f0We1lOPe+gS0YjTuP759BTKmHgHZEgOzbu++Vj/CAj6EwW5CU9c1a1crIpx4cN3Lw34pdYpO1kyN4H9jOouImtv6ip+a18p26cZ3HHur94=; X-YMail-OSG: Qqb01vIVM1nIgLM.6e6j_e56Xy9K02clD90j.p.TXu5UqmIcUrieqsF5oxxtgJ2OKgRvW5R8F1EX2GyygeQxA5nxwg1mthD40W6FbAp9MQhJ5KynVD5xgma3bw-- Received: from [75.179.188.181] by web30505.mail.mud.yahoo.com via HTTP; Mon, 19 May 2008 14:51:03 PDT X-Mailer: YahooMailRC/975.41 YahooMailWebService/0.7.185 Date: Mon, 19 May 2008 14:51:03 -0700 (PDT) From: Ron Grabowski Subject: Re: how to log to differnent textfiles? To: Log4NET User MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <832036.43615.qm@web30505.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org I wouldn't recommend using the RollingFileAppender with the MinimalLock. There's no way for one instance of the program to know that another instance has rolled the file. The MinimalLock is slow compared to an ExclusiveLock. The most effecient file based appender across multiple processes would probably be a normal FileAppender with a mutext based lock so the processes can coordinate who is writing to the file. Someone has already implemented such a class: http://www.mail-archive.com/log4net-user@logging.apache.org/msg04116.html That would be a good locking model to support in the next release. ----- Original Message ---- From: "Drinck@gmx.de" To: Log4NET User Sent: Monday, May 19, 2008 7:53:24 AM Subject: Re: how to log to differnent textfiles? Hello! Thanks for reply! Yes, it works. But when I log many entries in both processes I receive a log4net:ERROR [RollingFileAppender] Unable to acquire lock on file and after that an INTERNAL ERROR. Append is False but OutputFile ... already exists. There is no way to set the logfile path manual? Or can I specify the folder to user data folder? best regards, Mad