Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 17686 invoked from network); 19 Dec 2006 03:25:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Dec 2006 03:25:57 -0000 Received: (qmail 61547 invoked by uid 500); 19 Dec 2006 03:26:00 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 61515 invoked by uid 500); 19 Dec 2006 03:26:00 -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 61504 invoked by uid 99); 19 Dec 2006 03:26:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Dec 2006 19:26:00 -0800 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,MSGID_FROM_MTA_HEADER,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of jx_china@hotmail.com designates 65.54.246.208 as permitted sender) Received: from [65.54.246.208] (HELO bay0-omc3-s8.bay0.hotmail.com) (65.54.246.208) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Dec 2006 19:25:48 -0800 Received: from hotmail.com ([65.55.133.88]) by bay0-omc3-s8.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Mon, 18 Dec 2006 19:25:28 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 18 Dec 2006 19:25:27 -0800 Message-ID: Received: from 65.55.133.123 by by128fd.bay128.hotmail.msn.com with HTTP; Tue, 19 Dec 2006 03:25:23 GMT X-Originating-IP: [74.102.137.144] X-Originating-Email: [jx_china@hotmail.com] X-Sender: jx_china@hotmail.com In-Reply-To: From: "jin xin" To: log4j-user@logging.apache.org Subject: quesiton about LoggingEvent Date: Tue, 19 Dec 2006 03:25:23 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 19 Dec 2006 03:25:27.0983 (UTC) FILETIME=[545E2BF0:01C7231D] X-Virus-Checked: Checked by ClamAV on apache.org Hi: I use the following code Class testClass { public void test1() { --- Throwable throwable = null; Throwable child = new Throwable("test"); LoggingEvent loggingEvent = new LoggingEvent(this.getClass().getName(),testLogger,Level.DEBUG,logMsg,child); System.out.println("class = "+loggingEvent.getLocationInformation().getClassName()); System.out.println("method = "+loggingEvent.getLocationInformation().getMethodName()); System.out.println("line = "+loggingEvent.getLocationInformation().getLineNumber());--- ---} } I am expecting to see the className, methodName and lineNumber to print out, however, I only get "?" for classNamem methodName and lineNumber. Can anybody advise me what I did wrong? Thanks _________________________________________________________________ Off to school, going on a trip, or moving? Windows Live (MSN) Messenger lets you stay in touch with friends and family wherever you go. Click here to find out how to sign up! http://www.telusmobility.com/msnxbox/ --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org