|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.logging.Handler
net.dpml.depot.DepotHandler
public class DepotHandler
Logging message handler that redirects log messages from a subprocess to a remote logging system.
Constructor Summary | |
---|---|
DepotHandler()
Creation of a new handler instance. |
|
DepotHandler(String host,
int port)
Creation of a new handler instance. |
Method Summary | |
---|---|
void |
close()
Close the log record handler. |
void |
flush()
Flush the handler. |
void |
publish(LogRecord record)
Publish a log record. |
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 |
---|
public DepotHandler() throws Exception
Exception
- if an error occurspublic DepotHandler(String host, int port) throws IOException
host
- the log server hostport
- the port
IOException
- if an IO error occursMethod Detail |
---|
public void flush()
flush
in class Handler
public void close()
close
in class Handler
public void publish(LogRecord record)
publish
in class Handler
record
- the log record to publish
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |