Package org.eclipse.net4j.util.om.log
Class AbstractLogHandler
java.lang.Object
org.eclipse.net4j.util.om.log.AbstractLogHandler
- All Implemented Interfaces:
OMLogHandler
- Direct Known Subclasses:
FileLogHandler
,PrintLogHandler
An abstract base implementation of a
log handler
that filters log events with a log level
greater than a configurable maximum level
.- Since:
- 2.0
- Author:
- Eike Stepper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
logged
(OMLogger logger, OMLogger.Level level, String msg, Throwable t) void
setLogLevel
(OMLogger.Level logLevel) static String
toString
(OMLogger.Level level) protected abstract void
writeLog
(OMLogger logger, OMLogger.Level level, String msg, Throwable t)
-
Constructor Details
-
AbstractLogHandler
-
AbstractLogHandler
public AbstractLogHandler()
-
-
Method Details
-
getLogLevel
-
setLogLevel
-
logged
- Specified by:
logged
in interfaceOMLogHandler
-
writeLog
protected abstract void writeLog(OMLogger logger, OMLogger.Level level, String msg, Throwable t) throws Throwable - Throws:
Throwable
-
toString
-