Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 50053 invoked from network); 28 Jul 2004 13:02:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 28 Jul 2004 13:02:26 -0000 Received: (qmail 31169 invoked by uid 500); 28 Jul 2004 13:02:21 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 31088 invoked by uid 500); 28 Jul 2004 13:02:20 -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 31070 invoked by uid 99); 28 Jul 2004 13:02:20 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=DNS_FROM_RFC_POST,URI_REDIRECTOR X-Spam-Check-By: apache.org Received: from [207.68.163.61] (HELO hotmail.com) (207.68.163.61) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 28 Jul 2004 06:02:18 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 28 Jul 2004 06:02:16 -0700 Received: from 206.47.47.2 by sea1fd.sea1.hotmail.msn.com with HTTP; Wed, 28 Jul 2004 13:02:16 GMT X-Originating-IP: [206.47.47.2] X-Originating-Email: [yacout_dadoun@hotmail.com] X-Sender: yacout_dadoun@hotmail.com From: "yacout dadoun" To: log4j-user@logging.apache.org Bcc: Subject: RE: How to add new level Date: Wed, 28 Jul 2004 13:02:16 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 28 Jul 2004 13:02:16.0710 (UTC) FILETIME=[1BBD5260:01C474A3] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Oh yes thanks But iffor instance, i put trace between warn and error(trace_int=3500 syslog_alert=4), i will still receive a message if an error/fatal happensright? however i'd like to receive a message only and only if the trace is called Thanks >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:57:02 +1000 > >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 > _________________________________________________________________ Take advantage of powerful junk e-mail filters built on patented Microsoft� 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 MSN� 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