net.myrrix.common.log
Class MemoryHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by net.myrrix.common.log.MemoryHandler

public final class MemoryHandler
extends Handler

Simple Handler that records recent log lines in memory.


Constructor Summary
MemoryHandler()
           
 
Method Summary
 void close()
           
 void flush()
           
 Collection<String> getLogLines()
           
 void publish(LogRecord logRecord)
           
 
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

MemoryHandler

public MemoryHandler()
Method Detail

getLogLines

public Collection<String> getLogLines()

publish

public void publish(LogRecord logRecord)
Specified by:
publish in class Handler

flush

public void flush()
Specified by:
flush in class Handler

close

public void close()
Specified by:
close in class Handler


Copyright © 2012. All Rights Reserved.