dcsimg
I want to send log throug an email. Am unable to do it. Please help. Thanks and Regards, Me.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   jitesh_arya
Posted On:   Thursday, September 18, 2003 05:46 AM

my properties file goes here- log4j.rootLogger=, log4j.logger.myLogger=DEBUG, Mail log4j.additivity.myLogger=false log4j.appender.Mail=org.apache.log4j.net.SMTPAppender log4j.appender.Mail.BufferSize=4096 log4j.appender.Mail.From=Jitesh log4j.appender.Mail.To=jitesharya@somesite.com log4j.appender.Mail.Subject=Log Message from Jitesh log4j.appender.Mail.SMTPHost=5.0.2195.5329 log4j.appender.Mail.layout=org.apache.log4j.SimpleLayout I am instantiating the logger in this way- static { PropertyConfigurator.configure("c:/TestLogging/log.properties"); } Logger logger = Logger.getLogger("myLogger");    More>>

my properties file goes here-


log4j.rootLogger=,
log4j.logger.myLogger=DEBUG, Mail
log4j.additivity.myLogger=false
log4j.appender.Mail=org.apache.log4j.net.SMTPAppender
log4j.appender.Mail.BufferSize=4096
log4j.appender.Mail.From=Jitesh
log4j.appender.Mail.To=jitesharya@somesite.com
log4j.appender.Mail.Subject=Log Message from Jitesh
log4j.appender.Mail.SMTPHost=5.0.2195.5329
log4j.appender.Mail.layout=org.apache.log4j.SimpleLayout


I am instantiating the logger in this way-


static {
PropertyConfigurator.configure("c:/TestLogging/log.properties");
}
Logger logger = Logger.getLogger("myLogger");


It gives me following exception-


noclassdeffounderror: javax/mail/multipart

   <<Less

Re: I want to send log throug an email. Am unable to do it. Please help. Thanks and Regards, Me.

Posted By:   Christopher_Koenigsberg  
Posted On:   Friday, September 19, 2003 12:49 PM

Sounds like you are missing the Jar files for JavaMail?

About | Sitemap | Contact