|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.logging.Handler
nl.tudelft.simulation.logger.handlers.MemoryHandler
public class MemoryHandler
A MemoryHandler which makes it possible to push to a dynamic target.
(c) copyright 2002-2005 Delft
University of Technology , the Netherlands.
See for project information
www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
Constructor Summary | |
---|---|
MemoryHandler()
constructs a new MemoryHandler |
|
MemoryHandler(int size)
constructs a new MemoryHandler |
Method Summary | |
---|---|
void |
close()
|
void |
flush()
|
Formatter |
getFormatter()
|
int |
getSize()
returns the size |
void |
publish(LogRecord logRecord)
|
void |
push(Handler target)
pushes the memory to a handler |
void |
setFormatter(Formatter arg0)
|
void |
setSize(int size)
sets the number of records this handler can hold |
Methods inherited from class java.util.logging.Handler |
---|
getEncoding, getErrorManager, getFilter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setLevel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemoryHandler()
public MemoryHandler(int size)
size
- the size of the memoryHandlerMethod Detail |
---|
public void close()
close
in class Handler
Handler.close()
public void flush()
flush
in class Handler
Handler.flush()
public Formatter getFormatter()
getFormatter
in class Handler
Handler.getFormatter()
public int getSize()
public void publish(LogRecord logRecord)
publish
in class Handler
Handler.publish(java.util.logging.LogRecord)
public void push(Handler target)
target
- the targetpublic void setFormatter(Formatter arg0)
setFormatter
in class Handler
Handler.setFormatter(java.util.logging.Formatter)
public void setSize(int size)
size
- the size
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |