|
Préférences
Moteurs de recherche
|
|||||||||||||||||
| JavaTM 2 Platform Std. Ed. v1.5.0
java.util.logging
|
||||||||||||||||||
| Constructor Summary | |
|---|---|
SocketHandler()
Create a SocketHandler, using only LogManager properties (or their defaults). |
|
SocketHandler(String host,
int port)
Construct a SocketHandler using a specified host and port. |
|
| Method Summary | |
|---|---|
void |
close()
Close this output stream. |
void |
publish(LogRecord record)
Format and publish a LogRecord. |
| Methods inherited from class java.util.logging.StreamHandler |
|---|
flush, isLoggable, setEncoding, setOutputStream |
| Methods inherited from class java.util.logging.Handler |
|---|
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, 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 SocketHandler()
throws IOException
IllegalArgumentException - if the host or port are invalid or
are not specified as LogManager properties.
IOException - if we are unable to connect to the target
host and port.public SocketHandler(String host, int port) throws IOException
host - target host.port - target port.
IllegalArgumentException - if the host or port are invalid.
IOException - if we are unable to connect to the target
host and port.| Method Detail |
|---|
public void close()
throws SecurityException
close in class StreamHandlerSecurityException - if a security manager exists and if
the caller does not have LoggingPermission("control").public void publish(LogRecord record)
publish in class StreamHandlerrecord - description of the log event. A null record is
silently ignored and is not published