Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 39933 invoked from network); 16 Jul 2008 13:34:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jul 2008 13:34:38 -0000 Received: (qmail 8659 invoked by uid 500); 16 Jul 2008 13:34:35 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 8641 invoked by uid 500); 16 Jul 2008 13:34:35 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 8628 invoked by uid 99); 16 Jul 2008 13:34:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jul 2008 06:34:34 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [166.73.19.151] (HELO Mail2.Fiserv.com) (166.73.19.151) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jul 2008 13:33:42 +0000 X-IronPort-AV: E=Sophos;i="4.30,373,1212382800"; d="scan'208";a="42441580" Received: from unknown (HELO Mail4.Fiserv.com) ([10.3.226.3]) by Mail2.Fiserv.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 16 Jul 2008 08:29:43 -0500 Received: from FGSMAIL.fiserv.co.in ([10.253.16.102]) by Mail4.Fiserv.com (Switch-3.3.0/Switch-3.3.0) with ESMTP id m6GDWtch008106 for ; Wed, 16 Jul 2008 09:33:09 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Logging NDC value Date: Wed, 16 Jul 2008 18:59:35 +0530 Message-ID: <8EBF668F7ACF8344BAC93D29CE2FBC13041F7822@FGSMAIL.fiserv.co.in> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Logging NDC value Thread-Index: AcjFb01XBgE90MJzRo+fvv4Z9Mamawh1z7ZA From: "Duseja, Sushil" To: X-Virus-Checked: Checked by ClamAV on apache.org Hello, I used event.getNDC() to log the NDC value (where event is a org.apache.log4j.spi.LoggingEvent object), but it's fetching - 'null'. Similarly, I used event.getThrowableStrRep() to log the exception value but that is again fetching a null. Can anyone let me know the correct way of doing the same? Moreover, please let me know - how to log the MDC value? Note - I did set the parameter - locationInfo in the log4j.xml. Thanks. =20 --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org