You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by None None <ja...@hotmail.com> on 2004/10/07 22:50:57 UTC

Custom levels.

So far I have log4j setup that INFo logs get logged to a rolling file and 
fatal logs sent by e-mail.

Now I would like to to my application the ability to send an e-mail when it 
has satrted and stopped.... I was thinking I could this be creating a custom 
level.

Is there a better way?

If not I have already extended the Level class, but the sample source does 
not show how to use the custom level... How can I use my custom level?

Thanks

_________________________________________________________________
Powerful Parental Controls Let your child discover the best the Internet has 
to offer. 
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


RE: Custom levels.

Posted by Ivan Jouikov <iv...@ablogic.net>.
http://logging.apache.org/log4j/docs/api/org/apache/log4j/net/SMTPAppender.html


> -----Original Message-----
> From: None None [mailto:jappdev@hotmail.com]
> Sent: Thursday, October 07, 2004 1:51 PM
> To: log4j-user@logging.apache.org
> Subject: Custom levels.
> 
> So far I have log4j setup that INFo logs get logged to a rolling file and
> fatal logs sent by e-mail.
> 
> Now I would like to to my application the ability to send an e-mail when
> it
> has satrted and stopped.... I was thinking I could this be creating a
> custom
> level.
> 
> Is there a better way?
> 
> If not I have already extended the Level class, but the sample source does
> not show how to use the custom level... How can I use my custom level?
> 
> Thanks
> 
> _________________________________________________________________
> Powerful Parental Controls Let your child discover the best the Internet
> has
> to offer.
> 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
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.772 / Virus Database: 519 - Release Date: 01.10.2004
> 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.772 / Virus Database: 519 - Release Date: 01.10.2004
 


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org