public class OSGiLoggingBridge extends Object implements OMLogHandler
log handler
that appends log events to the OSGi log service
.Modifier and Type | Field and Description |
---|---|
static OSGiLoggingBridge |
INSTANCE |
Modifier | Constructor and Description |
---|---|
protected |
OSGiLoggingBridge() |
Modifier and Type | Method and Description |
---|---|
protected org.osgi.service.log.LogService |
getLogService(org.osgi.framework.BundleContext bundleContext) |
void |
logged(org.osgi.framework.BundleContext bundleContext,
OMLogger.Level level,
String msg,
Throwable t) |
void |
logged(OMLogger logger,
OMLogger.Level level,
String msg,
Throwable t) |
static int |
toOSGi(OMLogger.Level level) |
public static final OSGiLoggingBridge INSTANCE
public void logged(OMLogger logger, OMLogger.Level level, String msg, Throwable t)
logged
in interface OMLogHandler
public void logged(org.osgi.framework.BundleContext bundleContext, OMLogger.Level level, String msg, Throwable t)
protected org.osgi.service.log.LogService getLogService(org.osgi.framework.BundleContext bundleContext)
public static int toOSGi(OMLogger.Level level)
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.