Package org.eclipse.net4j.util.om.log
Class OSGiLogHandler
java.lang.Object
org.eclipse.net4j.util.om.log.OSGiLogHandler
- All Implemented Interfaces:
OMLogHandler
A
log handler
that appends log events to the OSGi log service
.- Since:
- 3.8
- Author:
- Eike Stepper
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.osgi.service.log.Logger
getLogger
(org.osgi.framework.BundleContext bundleContext) void
logged
(OMLogger logger, OMLogger.Level level, String msg, Throwable t) void
logged
(org.osgi.framework.BundleContext bundleContext, OMLogger.Level level, String msg, Throwable t) static org.osgi.service.log.LogLevel
toOSGi
(OMLogger.Level level)
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
OSGiLogHandler
protected OSGiLogHandler()
-
-
Method Details
-
logged
- Specified by:
logged
in interfaceOMLogHandler
-
logged
public void logged(org.osgi.framework.BundleContext bundleContext, OMLogger.Level level, String msg, Throwable t) -
getLogger
protected org.osgi.service.log.Logger getLogger(org.osgi.framework.BundleContext bundleContext) -
toOSGi
-