Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 19998 invoked from network); 10 Aug 2006 07:48:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Aug 2006 07:48:49 -0000 Received: (qmail 74189 invoked by uid 500); 10 Aug 2006 07:48:47 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 74035 invoked by uid 500); 10 Aug 2006 07:48:46 -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 74024 invoked by uid 99); 10 Aug 2006 07:48:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Aug 2006 00:48:46 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [206.190.52.174] (HELO smtp105.biz.mail.re2.yahoo.com) (206.190.52.174) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 10 Aug 2006 00:48:44 -0700 Received: (qmail 96619 invoked from network); 10 Aug 2006 07:48:22 -0000 Received: from unknown (HELO node12) (sreddy@smarteinc.com@202.149.213.13 with login) by smtp105.biz.mail.re2.yahoo.com with SMTP; 10 Aug 2006 07:48:21 -0000 From: "ysuneelreddy" To: "'Log4J Users List'" Cc: Subject: RE: Different client's log file? Date: Thu, 10 Aug 2006 13:18:21 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: Aca8Ni+hCY6qsEBIT5Slj/Bs9i47GwAGxFkQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 In-Reply-To: X-Virus-Checked: Checked by ClamAV on apache.org Message-Id: <20060810074845.B091110FB000@asf.osuosl.org> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi for this purpose use MDC & NDC See details more=20 Use key & values in MDC -----Original Message----- From: Javier Gonzalez [mailto:jagonzal@gmail.com]=20 Sent: Thursday, August 10, 2006 10:04 AM To: Log4J Users List Subject: Re: Different client's log file? On 8/9/06, wolverine my wrote: > One or more clients connecting to the server. How can we log the > message into different client's log files? > > E.g. when there are client X, Y, Z connecting to the server. The > messages will be logged into X.log, Y.log and Z.log. > > This will be easier for us to debug when one client encounter problem. If the clients' names (every possible one) are known beforehand, you can create an appender for each client, and log to a logger named after the client - create your loggers as "Logger.getLogger(client.getName())" and attach an appender to each possible name. --=20 Javier Gonz=E1lez Nicolini --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org