Package net.sf.colossus.server
Class RemoteLogHandler
- java.lang.Object
-
- java.util.logging.Handler
-
- net.sf.colossus.server.RemoteLogHandler
-
public class RemoteLogHandler extends java.util.logging.Handler
A java.util.logging Handler that appends to aServer
viaallLog
. Clemens: this is totally odd. Above it says it appends to a server, but in practice it is used in a way that any thing logged on server is transmitted to all remote clients, and even in wrong way; see below...
-
-
Field Summary
Fields Modifier and Type Field Description private static boolean
PUBLISH_TO_REMOTE_LOGGERS
private Server
server
-
Constructor Summary
Constructors Constructor Description RemoteLogHandler(Server server)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
flush()
void
publish(java.util.logging.LogRecord record)
boolean
requiresLayout()
-
-
-
Field Detail
-
PUBLISH_TO_REMOTE_LOGGERS
private static final boolean PUBLISH_TO_REMOTE_LOGGERS
- See Also:
- Constant Field Values
-
server
private Server server
-
-
Constructor Detail
-
RemoteLogHandler
public RemoteLogHandler(Server server)
-
-
Method Detail
-
requiresLayout
public boolean requiresLayout()
-
close
public void close()
- Specified by:
close
in classjava.util.logging.Handler
-
publish
public void publish(java.util.logging.LogRecord record)
- Specified by:
publish
in classjava.util.logging.Handler
-
flush
public void flush()
- Specified by:
flush
in classjava.util.logging.Handler
-
-