Re: How to add new level

2004-07-29 Thread Endre Stølsvik
On Wed, 28 Jul 2004, yacout dadoun wrote: | What i need is to alert a group of people each time a specific kind of | events happens, like lake of disc space, do a task manually cause it fails | automatically etc...so i'd like to call an alert that sends email to a | specific group. | If i add a n

RE: How to add new level

2004-07-28 Thread yacout dadoun
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:57:02 +1000 In the XML file, whereever you could use the strings DEBUG/INFO/WARN/ERRO

Re: How to add new level

2004-07-28 Thread yacout dadoun
these events happen, and in my log4j xml file i'll caree an SMTP apender that send email to this groupd each time an alert is called From: Dan Tarkenton <[EMAIL PROTECTED]> Reply-To: "Log4J Users List" <[EMAIL PROTECTED]> To: Log4J Users List <[EMAIL PROTECTED]>

Re: How to add new level

2004-07-27 Thread Dan Tarkenton
I'm sure you can do this by either subclassing the Category or Logger class. My only question is why do you want another level other than DEBUG, INFO, WARNING, ERROR, or FATAL? What purpose do you have in mind? On Tue, 27 Jul 2004 22:02:32 +, yacout dadoun <[EMAIL PROTECTED]> wrote: > Hi, >

RE: How to add new level

2004-07-27 Thread Paul Smith
og4j.rootLogger=trace#my.package.TraceLevel, MAIN, STDERR > > But how to add it to the xml log4j file not properties file ? > > > >From: "Paul Smith" <[EMAIL PROTECTED]> > >Reply-To: "Log4J Users List" <[EMAIL PROTECTED]> > >To: &qu

RE: How to add new level

2004-07-27 Thread Paul Smith
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 >

RE: How to add new level

2004-07-27 Thread yacout dadoun
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

2004-07-27 Thread yacout dadoun
file ? 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

RE: How to add new level

2004-07-27 Thread Paul Smith
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 ne

RE: How to add new level

2004-07-27 Thread yacout dadoun
lName 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

RE: How to add new level

2004-07-27 Thread Paul Smith
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? > Thank