Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 3255 invoked from network); 14 Apr 2009 21:02:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Apr 2009 21:02:24 -0000 Received: (qmail 68130 invoked by uid 500); 14 Apr 2009 21:02:23 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 68059 invoked by uid 500); 14 Apr 2009 21:02:22 -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 68048 invoked by uid 99); 14 Apr 2009 21:02:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Apr 2009 21:02:22 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [213.161.0.32] (HELO deliver-2.mx.triera.net) (213.161.0.32) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Apr 2009 21:02:12 +0000 Received: from localhost (unknown [213.161.0.24]) by deliver-2.mx.triera.net (Postfix) with ESMTP id 4FCC3981 for ; Tue, 14 Apr 2009 23:01:40 +0200 (CEST) X-Virus-Scanned: Triera AV Service Received: from smtp.triera.net (smtp.triera.net [213.161.0.30]) by in-6.mx.triera.net (Postfix) with SMTP id 24C041AA55F for ; Tue, 14 Apr 2009 23:01:45 +0200 (CEST) Received: from [192.168.4.14] (unknown [86.58.50.58]) by smtp.triera.net (Postfix) with ESMTP id BB0651A18B1 for ; Tue, 14 Apr 2009 23:01:26 +0200 (CEST) Message-ID: <49E4F99F.4040308@triera.net> Date: Tue, 14 Apr 2009 23:01:19 +0200 From: Andy Rozman User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: log4j-user@logging.apache.org Subject: logging from another class Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi ! I already asked this question once, but there were no answers then, I hope there will be one now... I have several classes which need to use logger. Theretically I could instantiate it in each class, but problem is that this message must also be used in some other module (log must be displayed in my swing applciation). So I wanted to create Util class which will a) write into log b) send info to swing application. Problem is that when I do that, I get that log message was created in this Util class. I need to know name and line of class that called this Util class, how could this be done? Is there possibility to do that? Take care, Andy --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org