I already have a logger setup to send e-mails when "FATAL" errors occur. But I also want to send e-mail on some specific occasions ;) Like starting and stopping an application. To do this I need to define a custom level. The problem is that the samples provided for the custom level dont offer any explanation on how to implement the logger class. Unless there is a better way?
From: "Ivan Jouikov" <[EMAIL PROTECTED]> Reply-To: "Log4J Users List" <[EMAIL PROTECTED]> To: "'Log4J Users List'" <[EMAIL PROTECTED]> Subject: RE: Custom levels. Date: Thu, 7 Oct 2004 21:53:39 -0700
http://logging.apache.org/log4j/docs/api/org/apache/log4j/net/SMTPAppender.html
> -----Original Message-----
> From: None None [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 07, 2004 1:51 PM
> To: [EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---
> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Designer Mail isn't just fun to send, it's fun to receive. Use special stationery, fonts and colors. 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
