|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kiwi.util.FileLoggingEndpoint
An implementation of LoggingEndpoint
for ordinary files.
Field Summary | |
private java.io.BufferedWriter |
out
|
private static java.lang.String[] |
types
|
Fields inherited from interface kiwi.util.LoggingEndpoint |
ERROR, INFO, STATUS, WARNING |
Constructor Summary | |
FileLoggingEndpoint(java.lang.String filename)
Construct a new FileLoggingEndpoint . |
Method Summary | |
void |
close()
Close the log file. |
void |
logMessage(int type,
java.lang.String message)
Write a message to the log file. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static final java.lang.String[] types
private java.io.BufferedWriter out
Constructor Detail |
public FileLoggingEndpoint(java.lang.String filename) throws java.io.IOException
FileLoggingEndpoint
.filename
- The name of the file to which log messages will be
written.java.io.IOException
- If the file could not be opened for
writing.Method Detail |
public void logMessage(int type, java.lang.String message)
logMessage
in interface LoggingEndpoint
type
- The message type; one of the static constants defined in
LoggingEndpoint
.message
- The message to be written.public void close()
close
in interface LoggingEndpoint
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |