com.caucho.log
Class SyslogHandler

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

public class SyslogHandler
extends java.util.logging.Handler

Logs to the syslog stream


Constructor Summary
SyslogHandler()
           
 
Method Summary
 void close()
          Closes the handler.
 void flush()
          Flushes the buffer.
 void publish(java.util.logging.LogRecord record)
          Publishes the record.
 void setFacility(java.lang.String facility)
          Sets the facility.
 void setSeverity(java.lang.String severity)
          Sets the severity.
 
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, toString, wait, wait, wait
 

Constructor Detail

SyslogHandler

public SyslogHandler()
Method Detail

setFacility

public void setFacility(java.lang.String facility)
                 throws ConfigException
Sets the facility.

Throws:
ConfigException

setSeverity

public void setSeverity(java.lang.String severity)
                 throws ConfigException
Sets the severity.

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