|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.hp.hpl.jena.util.LogFileHandler
Basic handler for writing log messages to a log file.
| Field Summary | |
static char |
FIELD_SEP
Character used to separate fields in the output. |
| Constructor Summary | |
LogFileHandler(java.lang.String fileName)
Construct a log file handler to write to the given log file, overwriting any existing content in the log file. |
|
LogFileHandler(java.lang.String fileName,
boolean append)
Construct a log file handler to write to the given log file. |
|
| Method Summary | |
void |
close()
Close the log file handler. |
void |
publish(int level,
java.lang.String msg,
java.lang.String cls,
java.lang.String method,
java.lang.Throwable ex)
Publish the given information to the log file opened by the constructor. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final char FIELD_SEP
| Constructor Detail |
public LogFileHandler(java.lang.String fileName,
boolean append)
throws java.io.IOException
fileName - The name of the log file to write to.append - If true, append to the end of an existing log file. If false,
the existing file will be overwritten.
java.io.IOException - if the file cannot be opened for writing.
public LogFileHandler(java.lang.String fileName)
throws java.io.IOException
fileName - The name of the log file to write to.
java.io.IOException - if the file cannot be opened for writing.| Method Detail |
public void publish(int level,
java.lang.String msg,
java.lang.String cls,
java.lang.String method,
java.lang.Throwable ex)
publish in interface LogHandlerlevel - The log level that this message is published atmsg - The log message to be published.cls - Optional name of the class that originated the log request.method - Optional name of the method that originated the log request.ex - Optional throwable that triggered the log request.public void close()
close in interface LogHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||