Package org.jboss.netty.logging
Class OsgiLoggerFactory
java.lang.Object
org.jboss.netty.logging.InternalLoggerFactory
org.jboss.netty.logging.OsgiLoggerFactory
Logger factory which creates an OSGi
LogService
logger.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InternalLoggerFactory
(package private) org.osgi.service.log.LogService
private final org.osgi.util.tracker.ServiceTracker
-
Constructor Summary
ConstructorsConstructorDescriptionOsgiLoggerFactory
(org.osgi.framework.BundleContext ctx) OsgiLoggerFactory
(org.osgi.framework.BundleContext ctx, InternalLoggerFactory fallback) -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
org.osgi.service.log.LogService
newInstance
(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 Details
-
logServiceTracker
private final org.osgi.util.tracker.ServiceTracker logServiceTracker -
fallback
-
logService
volatile org.osgi.service.log.LogService logService
-
-
Constructor Details
-
OsgiLoggerFactory
public OsgiLoggerFactory(org.osgi.framework.BundleContext ctx) -
OsgiLoggerFactory
-
-
Method Details
-
getFallback
-
getLogService
public org.osgi.service.log.LogService getLogService() -
destroy
public void destroy() -
newInstance
Description copied from class:InternalLoggerFactory
Creates a new logger instance with the specified name.- Specified by:
newInstance
in classInternalLoggerFactory
-