Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 90270 invoked from network); 11 Aug 2006 15:37:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Aug 2006 15:37:39 -0000 Received: (qmail 4958 invoked by uid 500); 11 Aug 2006 15:37:36 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 4926 invoked by uid 500); 11 Aug 2006 15:37:36 -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 4915 invoked by uid 99); 11 Aug 2006 15:37:36 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Aug 2006 08:37:36 -0700 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [162.39.178.131] (HELO sbhfislrext02.fnfis.com) (162.39.178.131) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Aug 2006 08:37:35 -0700 Received: from sbhfisltcgw01.FNFIS.COM ([10.132.201.43]) by sbhfislrext02 with InterScan Messaging Security Suite; Fri, 11 Aug 2006 10:44:04 -0500 Received: from CMBFISLR02.FNFIS.COM ([10.132.201.79]) by sbhfisltcgw01.FNFIS.COM with Microsoft SMTPSVC(6.0.3790.1830); Fri, 11 Aug 2006 10:36:50 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6BD5B.F693F535" Subject: Different Log4j log file(s) based on Logging Level? Date: Fri, 11 Aug 2006 10:36:50 -0500 Message-ID: <7439881410632C4FA3BACD0050A392B2018CA19F@CMBFISLR02.FNFIS.COM> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Different Log4j log file(s) based on Logging Level? Thread-Index: Aca9W/Z6MsxCC3GMSLiJpG+4l6rq6Q== From: "Madduri, Murthy" To: X-OriginalArrivalTime: 11 Aug 2006 15:36:50.0801 (UTC) FILETIME=[F6DD4E10:01C6BD5B] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C6BD5B.F693F535 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, =20 We are using log4j for our core business framework and it works fine. One of recent requirements is that we need to capture different logging events: very much customized. For example, they need a Configurations event, Business Activity event etc. =20 1) Is there a way we can extend the org.apache.log4j.Level class? Can we have our own logging levels? 2) If so, can we re-direct the different logging levels into different log files? For example, all the log statements with com.test.logging.Level.CONFIG(a custom level) should be directed to myapp-config.log and vice versa. 3) In a J2EE application, how can we use a different log4j configuration file name, NOT the default log4j.xml or log4j.proprties? =20 Any help is appreciated. =20 Thanks & Regards=20 Murthy Madduri * (770)263-1231 * Email: murthy.madduri@fnf.com=20 =20 ------_=_NextPart_001_01C6BD5B.F693F535--