If you read the constructor information in the example, the 9 is the Syslog equivalent level....
> -----Original Message----- > From: yacout dadoun [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 28, 2004 8:48 AM > To: [EMAIL PROTECTED] > Subject: RE: How to add new level > > Thanks, > what about number 9 used in :LevelALL=new AlertLevel(ALL_INT,"ALL",9) > Thanks > > > >From: "Paul Smith" <[EMAIL PROTECTED]> > >Reply-To: "Log4J Users List" <[EMAIL PROTECTED]> > >To: "'Log4J Users List'" <[EMAIL PROTECTED]> > >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:[EMAIL PROTECTED] > > > Sent: Wednesday, July 28, 2004 8:28 AM > > > To: [EMAIL PROTECTED] > > > 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" <[EMAIL PROTECTED]> > > > >Reply-To: "Log4J Users List" <[EMAIL PROTECTED]> > > > >To: "'Log4J Users List'" <[EMAIL PROTECTED]> > > > >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:[EMAIL PROTECTED] > > > > > Sent: Wednesday, July 28, 2004 8:03 AM > > > > > To: [EMAIL PROTECTED] > > > > > Cc: [EMAIL PROTECTED] > > > > > 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: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: log4j-user- > [EMAIL PROTECTED] > > > > > > > > > > > > > > > >--------------------------------------------------------------------- > > > >To unsubscribe, e-mail: [EMAIL PROTECTED] > > > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > _________________________________________________________________ > > > 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: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > _________________________________________________________________ > Take charge with a pop-up guard 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]