logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "geek.shrek" <miss_cool_...@yahoo.com>
Subject sending log4j from java mail
Date Wed, 08 Oct 2008 04:46:47 GMT

I'm not sure if this is the right forum to ask about javax.mail and log4j.

I want to send an email when log4j create a WARNING level and I would like to send it not
from log4j but from java mail.

The reason I'm sending email from java mail because I would like to add
some extra into the email body and manage where can I put the log
Also, I want to send email when the application reach certain point whether including all
the warnings up to that point.
for example the email will look like below

"bla bla Add some note here.... bla bla "
2008-10-08 13:40:15,915 WARN [com.test.HelloWorld] - Warning no. 41 
2008-10-08 13:40:15,916 WARN [com.test.HelloWorld] - Warning no. 42 
2008-10-08 13:40:15,916 WARN [com.test.HelloWorld] - Warning no. 43 
2008-10-08 13:40:15,916 WARN [com.test.HelloWorld] - Warning no. 44 
2008-10-08 13:40:15,916 WARN [com.test.HelloWorld] - Warning no. 45 
Hello World

Does anyone have any ideas how can I do this? Should I create my own logger and collect the
I hope I explain my problem clearly.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message