Package org.eclipse.net4j.util.om.log
Class FileLogHandler
java.lang.Object
org.eclipse.net4j.util.om.log.AbstractLogHandler
org.eclipse.net4j.util.om.log.FileLogHandler
- All Implemented Interfaces:
OMLogHandler
A
log handler
that appends log events to a file
.
The file is opened before and closed after each log event.
- Since:
- 2.0
- Author:
- Eike Stepper
- See Also:
-
Constructor Summary
ConstructorDescriptionFileLogHandler
(File logFile) FileLogHandler
(File logFile, OMLogger.Level logLevel) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
writeLog
(OMLogger logger, OMLogger.Level level, String msg, Throwable t) Methods inherited from class org.eclipse.net4j.util.om.log.AbstractLogHandler
getLogLevel, logged, setLogLevel, toString
-
Constructor Details
-
FileLogHandler
-
FileLogHandler
-
-
Method Details
-
getLogFile
-
writeLog
protected void writeLog(OMLogger logger, OMLogger.Level level, String msg, Throwable t) throws Throwable - Specified by:
writeLog
in classAbstractLogHandler
- Throws:
Throwable
-