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 OSGiLogService
logger.
-
-
Field Summary
Fields Modifier and Type Field Description private InternalLoggerFactory
fallback
(package private) org.osgi.service.log.LogService
logService
private org.osgi.util.tracker.ServiceTracker
logServiceTracker
-
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 void
destroy()
InternalLoggerFactory
getFallback()
org.osgi.service.log.LogService
getLogService()
InternalLogger
newInstance(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:InternalLoggerFactory
Creates a new logger instance with the specified name.- Specified by:
newInstance
in classInternalLoggerFactory
-
-