emailing log4j errors
1 posts in topic
Flat View  Flat View

Posted By:   Warren_Tinkoe
Posted On:   Tuesday, January 31, 2006 02:12 AM

I would like to know how to email log4j ERRORS in java?

I know of the SMTPAppender but i don't know how to use it in java.

I know that you can use it in xml by configuring the log4j.xml file but i need to do it in java.

can anyone please help me?


Re: emailing log4j errors

Posted By:   Christopher_Koenigsberg  
Posted On:   Saturday, February 4, 2006 06:58 PM

You can configure the log4j (which is for Java classes to log messages), either using the log4j.xml file, OR using the non-xml log4j.properties file.

Either way you configure it, you have to tell it where your smtp server is, etc.
About | Sitemap | Contact