Package org.jboss.netty.logging
Class OsgiLoggerFactory
- java.lang.Object
-
- org.jboss.netty.logging.InternalLoggerFactory
-
- org.jboss.netty.logging.OsgiLoggerFactory
-
public class OsgiLoggerFactory extends InternalLoggerFactory
Logger factory which creates an OSGiLogServicelogger.
-
-
Field Summary
Fields Modifier and Type Field Description private InternalLoggerFactoryfallback(package private) org.osgi.service.log.LogServicelogServiceprivate org.osgi.util.tracker.ServiceTrackerlogServiceTracker
-
Constructor Summary
Constructors Constructor Description OsgiLoggerFactory(org.osgi.framework.BundleContext ctx)OsgiLoggerFactory(org.osgi.framework.BundleContext ctx, InternalLoggerFactory fallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()InternalLoggerFactorygetFallback()org.osgi.service.log.LogServicegetLogService()InternalLoggernewInstance(java.lang.String name)Creates a new logger instance with the specified name.-
Methods inherited from class org.jboss.netty.logging.InternalLoggerFactory
getDefaultFactory, getInstance, getInstance, setDefaultFactory
-
-
-
-
Field Detail
-
logServiceTracker
private final org.osgi.util.tracker.ServiceTracker logServiceTracker
-
fallback
private final InternalLoggerFactory fallback
-
logService
volatile org.osgi.service.log.LogService logService
-
-
Constructor Detail
-
OsgiLoggerFactory
public OsgiLoggerFactory(org.osgi.framework.BundleContext ctx)
-
OsgiLoggerFactory
public OsgiLoggerFactory(org.osgi.framework.BundleContext ctx, InternalLoggerFactory fallback)
-
-
Method Detail
-
getFallback
public InternalLoggerFactory getFallback()
-
getLogService
public org.osgi.service.log.LogService getLogService()
-
destroy
public void destroy()
-
newInstance
public InternalLogger newInstance(java.lang.String name)
Description copied from class:InternalLoggerFactoryCreates a new logger instance with the specified name.- Specified by:
newInstancein classInternalLoggerFactory
-
-