Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 23863 invoked from network); 22 Jul 2005 14:18:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Jul 2005 14:18:17 -0000 Received: (qmail 3147 invoked by uid 500); 22 Jul 2005 14:18:14 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 3118 invoked by uid 500); 22 Jul 2005 14:18:13 -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 3105 invoked by uid 99); 22 Jul 2005 14:18:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jul 2005 07:18:13 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO,SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [63.161.60.61] (HELO mail2-res-R.bigfish.com) (63.161.60.61) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jul 2005 07:18:02 -0700 Received: from mail2-res.bigfish.com (localhost.localdomain [127.0.0.1]) by mail2-res-R.bigfish.com (Postfix) with ESMTP id CAD144B621D for ; Fri, 22 Jul 2005 14:18:04 +0000 (UTC) X-BigFish: V Received: by mail2-res.bigfish.com (MessageSwitch) id 1122041884638661_24158; Fri, 22 Jul 2005 14:18:04 +0000 (UCT) Received: from dtagsmtp1.DTG.Local (unknown [65.218.31.111]) by mail2-res.bigfish.com (Postfix) with SMTP id 711FD4B756B for ; Fri, 22 Jul 2005 14:18:04 +0000 (UTC) Received: from dtagpo2.DTG.Local ([172.23.116.15]) by dtagsmtp1.DTG.Local with Microsoft SMTPSVC(6.0.3790.211); Fri, 22 Jul 2005 09:17:57 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Remoting and Adonetappender Date: Fri, 22 Jul 2005 09:17:50 -0500 Message-ID: <719760EA5C6FA64FA99CC394FAE53AA70273F163@dtagpo2.dtg.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Remoting and Adonetappender thread-index: AcWMj5IapfaLgKubRkW0MapKNAi+UwAAdWdQAGT8b4AAAngwgAAhSefAAARA+OA= From: "Deepanjan Ganguly" To: "Log4NET User" X-OriginalArrivalTime: 22 Jul 2005 14:17:57.0922 (UTC) FILETIME=[28CF8820:01C58EC8] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Nicko, Thanks for your response. When I use the LogFileAppender it logs the property values when remoting is used. However when a buffering appender is used e.g. adonetappender, the property does not get stored. There are no internal errors thrown as well. While debugging I found that the MDC gets cleared in the BufferingSkeleton.cs at the following code when I use remoting. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D if (m_bufferSize <=3D 1) { // Only send the event if we are in non lossy mode or the event is a triggering event if ((!m_lossy) || (m_evaluator !=3D null && m_evaluator.IsTriggeringEvent(loggingEvent)) || (m_lossyEvaluator !=3D null && m_lossyEvaluator.IsTriggeringEvent(loggingEvent))) { if (m_eventMustBeFixed) { // Derive class expects fixed events loggingEvent.Fix =3D this.Fix; //// ***THIS IS WHERE THE MDC VALUE IS CLEARED IN REMOTING**//// } // Not buffering events, send immediatly SendBuffer(new LoggingEvent[] { loggingEvent } ); } }=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I have set the buffersize to 1. So when SendBuffer is called when remoting is used loggingEvent object does not have the property values in it. However when I use the adonetappender directly I don't get this problem. The two properties I am setting are "User" and "Client" in my example. Here is config file I use on the client side. I have commented out the one of the appenders in the client side based on whether I do remoting or direct adonetappender. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Here's the server side config. I have both LogFileAppender and adonetappender configured. As I said before all the property values show up correctly on the logfileappender during use of remoting. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Thanks again! Deep -----Original Message----- From: Nicko Cadell [mailto:nicko@neoworks.com]=20 Sent: Friday, July 22, 2005 6:58 AM To: Log4NET User Subject: RE: Remoting and Adonetappender=20 What do your 2 log4net configuration files look like? In your receiving app what happens if you add a FileAppender that would log the property values, for example: =20 Nicko > -----Original Message----- > From: Deepanjan Ganguly [mailto:Deepanjan.Ganguly@DTAG.Com]=20 > Sent: 21 July 2005 21:32 > To: Log4NET User > Subject: Remoting and Adonetappender=20 >=20 > I am seeing a difference when I use remoting with=20 > adonetappender. All values set with MDC (beta8 version) are=20 > missing from the table. All the other fields are populated.=20 > However when I use adonetappender directly all the mdc values=20 > are being stored.=20 >=20 > Any idea why this might be happening? >=20 > Thanks >=20 >=20