|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bristle.javalib.log.Logger.FilenameLoggerTarget
public static class Logger.FilenameLoggerTarget
This class implements the LoggerTarget interface, writing log entries to a named text file. 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.FilenameLoggerTarget(String strFilename)
Constructor. |
|
| Method Summary | |
|---|---|
String |
getFilename()
Get the filename that messages are currently being logged to. |
void |
log(Logger.Entry entry)
Log the log entry to the file. |
void |
setFilename(String strFilename)
Set the filename 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.FilenameLoggerTarget(String strFilename)
strFilename - The filename to write log entries to.| Method Detail |
|---|
public void setFilename(String strFilename)
strFilename - The new filename.public String getFilename()
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 the log file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||