logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sandro.r...@namics.com
Subject Re: Sending email
Date Wed, 05 Sep 2001 06:28:52 GMT

here our example... (it's a notifyer, when an critical error occeurs)

# The SMTP-Appender
log4j.appender.SMTP=org.apache.log4j.net.SMTPAppender
log4j.appender.SMTP.layout=org.apache.log4j.PatternLayout
log4j.appender.SMTP.layout.ConversionPattern=%d [%t] %-5p %-17c{2}
(%13F:%L) %3x - %m\n
log4j.appender.SMTP.To=some.email@address.com
log4j.appender.SMTP.SMTPHost=localhost
log4j.appender.SMTP.Subject=CriticalError in XY Application
log4j.appender.SMTP.From=some.other@address.com
log4j.appender.SMTP.BufferSize=1

it works fine...
hope this helps
sandro



                                                                                         
                                                    
                    "Ram Peleg"                                                          
                                                    
                    <Ram.Peleg@asc       To:     log4j-user@jakarta.apache.org        
                                                       
                    om.ch>               cc:                                          
                                                       
                                         Subject:     Sending email                      
                                                    
                    05.09.2001                                                           
                                                    
                    08:27                                                                
                                                    
                    Please respond                                                       
                                                    
                    to "LOG4J                                                            
                                                    
                    Users Mailing                                                        
                                                    
                    List"                                                                
                                                    
                                                                                         
                                                    
                                                                                         
                                                    





hi all

among other things, i'd like to log via e-mail es well (using the
SMTPAppender).
did any of you already do  that?  if yes, could you show me an example
property file?

bye

Rami




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


Mime
View raw message