Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 79111 invoked from network); 27 Sep 2008 20:45:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Sep 2008 20:45:56 -0000 Received: (qmail 70937 invoked by uid 500); 27 Sep 2008 20:45:53 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 70909 invoked by uid 500); 27 Sep 2008 20:45:52 -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 70884 invoked by uid 99); 27 Sep 2008 20:45:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Sep 2008 13:45:52 -0700 X-ASF-Spam-Status: No, hits=3.7 required=10.0 tests=DNS_FROM_OPENWHOIS,FORGED_HOTMAIL_RCVD2,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; Sat, 27 Sep 2008 20:44:51 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KjgfM-0004jA-M3 for log4net-user@logging.apache.org; Sat, 27 Sep 2008 13:45:24 -0700 Message-ID: <19706293.post@talk.nabble.com> Date: Sat, 27 Sep 2008 13:45:24 -0700 (PDT) From: Alaks To: log4net-user@logging.apache.org Subject: RE: Logging from two dlls interop In-Reply-To: <2DBCB4F689AD5F4A8E7C512EEDFDD1C00C77D3@merlinia-00.merlinia.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: leromantique6@hotmail.com References: <18868255.post@talk.nabble.com> <2DBCB4F689AD5F4A8E7C512EEDFDD1C00C77D3@merlinia-00.merlinia.local> X-Virus-Checked: Checked by ClamAV on apache.org well it was a logging problem (or a wrong use by me). I found the origin of this problem. I thought at the beginning as i use two different dlls , the log4net dll will be loaded twice and i was wrong. For all dlls in same process the log4net is loaded once. So the function "foo" log in the wrong file because when i instantiate these two dlls, each of those dlls uses the function Xmlconfigure, and each have a different file configuration so the first configuration is overrided by the second call to xmlconfigure from the second dll. I solve this problem by giving a unique name for each appender(for these two configuration files) and by creating different logger for each class wich has the same name -- View this message in context: http://www.nabble.com/Logging-from-two-dlls-interop-tp18868255p19706293.html Sent from the Log4net - Users mailing list archive at Nabble.com.