|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bristle.javalib.log.Logger.WriterLoggerTarget
public static class Logger.WriterLoggerTarget
This class implements the LoggerTarget interface, writing log entries to a Writer. It is a simple example of a LoggerTarget that is used by the Tester class below, and can also be used by clients outside of the Logger class.
| Constructor Summary | |
|---|---|
Logger.WriterLoggerTarget(Writer writer)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
getShowDynamicFields()
Get the flag about whether to show dynamic fields, like memory sizes and time stamps. |
Writer |
getWriter()
Get the Writer that messages are currently being logged to. |
void |
log(Logger.Entry entry)
Log the log entry to the Writer. |
void |
setShowDynamicFields(boolean blnVal)
Set the flag about whether to show dynamic fields, like memory sizes and time stamps. |
void |
setWriter(Writer writer)
Set the Writer to write log entries to. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Logger.WriterLoggerTarget(Writer writer)
writer - The Writer to write log entries to.| Method Detail |
|---|
public void setWriter(Writer writer)
writer - The new Writer.public Writer getWriter()
public void setShowDynamicFields(boolean blnVal)
blnVal - The new value.public boolean getShowDynamicFields()
public void log(Logger.Entry entry)
throws IOException
log in interface Logger.LoggerTargetentry - The log entry to write to the log.
IOException - When an error occurs writing to the Writer.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||