|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.connectivity.oda.util.logging.Handler
org.eclipse.datatools.connectivity.oda.util.logging.StreamHandler
org.eclipse.datatools.connectivity.oda.util.logging.FileHandler
public class FileHandler
The FileHandler
is a file logging Handler
that publishes LogRecords
to a specified file.
Constructor Summary | |
---|---|
FileHandler(java.lang.String filename)
Creates a FileHandler to publish LogRecords
to the specified file. |
|
FileHandler(java.lang.String filename,
LogFormatter formatter)
Creates a FileHandler to publish LogRecords
to the sepcified file using the specified LogFormatter . |
Method Summary | |
---|---|
void |
close()
Closes the current file handler. |
void |
publish(LogRecord record)
Creates the log file and its applicable parent directories when called for the first time. |
Methods inherited from class org.eclipse.datatools.connectivity.oda.util.logging.StreamHandler |
---|
flush, isLoggable, setFormatter |
Methods inherited from class org.eclipse.datatools.connectivity.oda.util.logging.Handler |
---|
getFilter, getFormatter, getLevel, getLoggingErrorHandler, setFilter, setLevel, setLoggingErrorHandler |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileHandler(java.lang.String filename)
FileHandler
to publish LogRecords
to the specified file. This will use the default SimpleFormatter
to format the LogRecords
. This does not create the physical
file or the parent directories until publish() is called.
filename
- the file to publish LogRecords
to.public FileHandler(java.lang.String filename, LogFormatter formatter)
FileHandler
to publish LogRecords
to the sepcified file using the specified LogFormatter
.
This does not create the physical file or the parent directories until
publish() is called.
filename
- the file to publish LogRecords
to.formatter
- the LogFormatter
to format the
LogRecords
.Method Detail |
---|
public void publish(LogRecord record)
publish
in class StreamHandler
record
- the record to publish.public void close()
close
in class StreamHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |