org.jwarp.service.log
Class LogMail

java.lang.Object
  |
  +--org.jwarp.service.log.ALogListener
        |
        +--org.jwarp.service.log.LogMail
All Implemented Interfaces:
ILogListener

public class LogMail
extends ALogListener

Log listener implementation sending a email. This can be sued to inform administrators when fatal errors occur.

Version:
1.0
Author:
Martin Schaefer

Field Summary
(package private)  SimpleEmail email
           
 
Fields inherited from class org.jwarp.service.log.ALogListener
logLevel
 
Constructor Summary
LogMail(org.jdom.Element config)
           
LogMail(java.lang.String host, java.lang.String from, java.lang.String to, java.lang.String subject)
           
 
Method Summary
 void log(LogEvent event)
          Notifies the log listener about an event
 
Methods inherited from class org.jwarp.service.log.ALogListener
geLogLevel, setLogLevel
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

email

SimpleEmail email
Constructor Detail

LogMail

public LogMail(java.lang.String host,
               java.lang.String from,
               java.lang.String to,
               java.lang.String subject)
        throws javax.mail.MessagingException

LogMail

public LogMail(org.jdom.Element config)
        throws javax.mail.MessagingException
Method Detail

log

public void log(LogEvent event)
Description copied from class: ALogListener
Notifies the log listener about an event
Overrides:
log in class ALogListener
Following copied from class: org.jwarp.service.log.ALogListener
Parameters:
event - The log event

©   O R C A   S y s t e m s