net.sf.colossus.server
Class RemoteLogHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by net.sf.colossus.server.RemoteLogHandler

public class RemoteLogHandler
extends java.util.logging.Handler

A java.util.logging Handler that appends to a Server via allLog. 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
private static boolean PUBLISH_TO_REMOTE_LOGGERS
           
private  Server server
           
 
Constructor Summary
RemoteLogHandler(Server server)
           
 
Method Summary
 void close()
           
 void flush()
           
 void publish(java.util.logging.LogRecord record)
           
 boolean requiresLayout()
           
 
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
 

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 class java.util.logging.Handler

publish

public void publish(java.util.logging.LogRecord record)
Specified by:
publish in class java.util.logging.Handler

flush

public void flush()
Specified by:
flush in class java.util.logging.Handler