org.eclipse.net4j.util.om.log
Class OSGiLoggingBridge

java.lang.Object
  extended by org.eclipse.net4j.util.om.log.OSGiLoggingBridge
All Implemented Interfaces:
OMLogHandler

public class OSGiLoggingBridge
extends Object
implements OMLogHandler

A log handler that appends log events to the OSGi log service.


Field Summary
static OSGiLoggingBridge INSTANCE
           
 
Constructor Summary
protected OSGiLoggingBridge()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final OSGiLoggingBridge INSTANCE
Constructor Detail

OSGiLoggingBridge

protected OSGiLoggingBridge()
Method Detail

logged

public void logged(OMLogger logger,
                   OMLogger.Level level,
                   String msg,
                   Throwable t)
Specified by:
logged in interface OMLogHandler

logged

public void logged(org.osgi.framework.BundleContext bundleContext,
                   OMLogger.Level level,
                   String msg,
                   Throwable t)

getLogService

protected org.osgi.service.log.LogService getLogService(org.osgi.framework.BundleContext bundleContext)

toOSGi

public static int toOSGi(OMLogger.Level level)


Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.