com.caucho.log
Class EventHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by com.caucho.log.EventHandler

public class EventHandler
extends java.util.logging.Handler

raises a LogRecord as an event


Constructor Summary
EventHandler()
           
 
Method Summary
 void close()
          Closes the handler.
 void flush()
          Flushes the buffer.
 void publish(java.util.logging.LogRecord record)
          Publishes the record.
 java.lang.String toString()
           
 
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventHandler

public EventHandler()
Method Detail

publish

public void publish(java.util.logging.LogRecord record)
Publishes the record.

Specified by:
publish in class java.util.logging.Handler

flush

public void flush()
Flushes the buffer.

Specified by:
flush in class java.util.logging.Handler

close

public void close()
Closes the handler.

Specified by:
close in class java.util.logging.Handler

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object