Class VerboseFileLoggingHandler
java.lang.Object
java.util.logging.Handler
java.util.logging.StreamHandler
java.util.logging.FileHandler
com.xinapse.util.logging.VerboseFileLoggingHandler
A
VerboseLoggingHandler publishes log records to a File in verbose format.
The formatter used is a XinapseTextOrGUILoggerFormatter.
-
Method Summary
Methods inherited from class StreamHandler
flush, isLoggable, setEncodingMethods inherited from class Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, setErrorManager, setFilter, setFormatter, setLevel
-
Method Details
-
close
public void close()Forces any data that may have been buffered to the underlying output devices, but does not closeSystem.outorSystem.err.In case of an I/O failure, the
ErrorManagers of thisVerboseLoggingHandlerwill be informed, but the caller of this method will not receive an exception.- Overrides:
closein classFileHandler
-
publish
Publishes aLogRecord, provided the record passes all tests for being loggable.Most applications do not need to call this method directly. Instead, they will use a
Logger, which will create LogRecords and distribute them to registered handlers.This implementation of
publishcalls flush() for every request to publish a record, so they appear immediately.- Overrides:
publishin classFileHandler- Parameters:
logRecord- the log event to be published.
-