com.caucho.log
Class HmtpHandler

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

public class HmtpHandler
extends java.util.logging.Handler

Sends formatted messages to HMTP target


Constructor Summary
HmtpHandler()
           
 
Method Summary
 void close()
          Closes the handler.
 void flush()
          Flushes the buffer.
 void init()
          Initialize the handler
 void publish(java.util.logging.LogRecord record)
          Publishes the record.
 void setTo(java.lang.String to)
          Sets the destination
 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

HmtpHandler

public HmtpHandler()
Method Detail

setTo

public void setTo(java.lang.String to)
Sets the destination


init

@PostConstruct
public void init()
          throws ConfigException
Initialize the handler

Throws:
ConfigException

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