|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.resilientedge.util.logger.AbstractHandler
|
+--com.resilientedge.util.logger.MemoryHandler
A Handler for logging messages to the Memory.
| Constructor Summary | |
MemoryHandler()
Construct a handler with its default formatter. |
|
| Method Summary | |
void |
flush()
This method empties the memory buffer |
java.lang.String |
getContent()
This method returns the content of the memory buffer and flush the buffer afterwards |
Formatter |
getDefaultFormatter()
This method returns the default Formatter for this Handler. |
void |
publish(LogRecord logRecord)
This method processes the log record and displays the message using System.out.println(). |
| Methods inherited from class com.resilientedge.util.logger.AbstractHandler |
getFormatter, lookupConfig, setFormatter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MemoryHandler()
| Method Detail |
public Formatter getDefaultFormatter()
getDefaultFormatter in class AbstractHandlerpublic java.lang.String getContent()
public void flush()
public void publish(LogRecord logRecord)
throws LoggerException
publish in class AbstractHandlerlogRecord - LoggerException -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||