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.
-
-
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(String name)
Creates a new logger instance with the specified name.-
Methods inherited from class org.jboss.netty.logging.InternalLoggerFactory
getDefaultFactory, getInstance, getInstance, setDefaultFactory
-
-
-
-
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(String name)
Description copied from class:InternalLoggerFactory
Creates a new logger instance with the specified name.- Specified by:
newInstance
in classInternalLoggerFactory
-
-