Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 19761 invoked from network); 27 Jul 2004 22:57:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 27 Jul 2004 22:57:19 -0000 Received: (qmail 27676 invoked by uid 500); 27 Jul 2004 22:57:11 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 27654 invoked by uid 500); 27 Jul 2004 22:57:11 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 27641 invoked by uid 99); 27 Jul 2004 22:57:11 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [150.101.223.98] (HELO herald.aconex.com) (150.101.223.98) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 27 Jul 2004 15:57:11 -0700 Received: from localhost (herald [127.0.0.1]) by herald.aconex.com (Postfix) with ESMTP id 93B526403F for ; Wed, 28 Jul 2004 08:57:08 +1000 (EST) Received: from herald.aconex.com ([127.0.0.1]) by localhost (herald [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22986-09 for ; Wed, 28 Jul 2004 08:57:02 +1000 (EST) Received: from haonguyen (unknown [192.168.0.163]) by herald.aconex.com (Postfix) with ESMTP id 5812464036 for ; Tue, 27 Jul 2004 18:57:02 -0400 (EDT) From: "Paul Smith" To: "'Log4J Users List'" Subject: RE: How to add new level Date: Wed, 28 Jul 2004 08:57:02 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 In-Reply-To: Thread-Index: AcR0KrNesImmxce0SHKMTqguEyUtTQAAilHQ Message-Id: <20040727225702.5812464036@herald.aconex.com> X-Virus-Scanned: by amavisd-new at aconex.com X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N In the XML file, whereever you could use the strings DEBUG/INFO/WARN/ERROR, just replace it with the string "trace#my.package.TraceLevel". > -----Original Message----- > From: yacout dadoun [mailto:yacout_dadoun@hotmail.com] > Sent: Wednesday, July 28, 2004 8:40 AM > To: log4j-user@logging.apache.org > Subject: RE: How to add new level > > Thanks for ur help > >To reference your custom level in the configuration file, you use the > >syntax > >that is at the very bottom of the example I sent: > >trace#my.package.TraceLevel > > > >e.g: > >log4j.rootLogger=trace#my.package.TraceLevel, MAIN, STDERR > > But how to add it to the xml log4j file not properties file ? > > > >From: "Paul Smith" > >Reply-To: "Log4J Users List" > >To: "'Log4J Users List'" > >Subject: RE: How to add new level > >Date: Wed, 28 Jul 2004 08:36:57 +1000 > > > >You won't be able to call logger.levelName because unless you come up > with > >your own LoggerFactory implementation, which is not recommended but > >possible. > > > >The usual way of using your custom level is to use the Logger.log(Level > >level, Object message) method. > >The numbers used are for comparing Levels with each other, so your custom > >Level should have a number that places it, say, below DEBUG, or between > >INFO > >& WARN. It's really up to you and what your Level is all about. > > > >To reference your custom level in the configuration file, you use the > >syntax > >that is at the very bottom of the example I sent: > >trace#my.package.TraceLevel > > > >e.g: > >log4j.rootLogger=trace#my.package.TraceLevel, MAIN, STDERR > > > > > > > -----Original Message----- > > > From: yacout dadoun [mailto:yacout_dadoun@hotmail.com] > > > Sent: Wednesday, July 28, 2004 8:28 AM > > > To: log4j-user@logging.apache.org > > > Subject: RE: How to add new level > > > > > > > > > Thanks, i 've already found this link but i dont know what values to > >give > > > to > > > TRACE_INT and SYSLOG_TRACE_INT they used 800 an d7 but in my case, i > >need > > > this level, to be able to call logger.levelName("------"); and in the > > > log4j > > > xml file send email to certain group each time levelName is called. > > > > > > > > > >From: "Paul Smith" > > > >Reply-To: "Log4J Users List" > > > >To: "'Log4J Users List'" > > > >Subject: RE: How to add new level > > > >Date: Wed, 28 Jul 2004 08:12:43 +1000 > > > > > > > >http://wiki.apache.org/logging-log4j/TraceLevel > > > > > > > > > -----Original Message----- > > > > > From: yacout dadoun [mailto:yacout_dadoun@hotmail.com] > > > > > Sent: Wednesday, July 28, 2004 8:03 AM > > > > > To: log4j-user@jakarta.apache.org > > > > > Cc: log4j-dev@jakarta.apache.org > > > > > Subject: How to add new level > > > > > > > > > > Hi, > > > > > How can i add new level to log4j? > > > > > Thanks > > > > > > > > > > _________________________________________________________________ > > > > > Share a single photo or an entire photo slide show right inside > MSNR > > > > > Messenger. > > > > > http://join.msn.com/?pgmarket=en- > > > > > > > > > > > >ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market > > > _ > > > > > MSNIS_Taglines > > > > > Start enjoying all the benefits of MSNR Premium right now and > get > > > the > > > > > first two months FREE*. > > > > > > > > > > > > > > > > >--------------------------------------------------------------------- > > > > > 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 > > > > > > > > > > _________________________________________________________________ > > > Take advantage of powerful junk e-mail filters built on patented > > > MicrosoftR > > > SmartScreen Technology. > > > http://join.msn.com/?pgmarket=en- > > > > >ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market > _ > > > MSNIS_Taglines > > > Start enjoying all the benefits of MSNR Premium right now and get > the > > > first two months FREE*. > > > > > > > > > --------------------------------------------------------------------- > > > 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 > > > > _________________________________________________________________ > Scan and help eliminate destructive viruses from your inbound and outbound > e-mail and attachments. > http://join.msn.com/?pgmarket=en- > ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_ > MSNIS_Taglines > Start enjoying all the benefits of MSNR Premium right now and get the > first two months FREE*. > > > --------------------------------------------------------------------- > 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