Package de.mnl.osgi.log4j2osgi
Class OsgiLoggerContextFactory
- java.lang.Object
-
- de.mnl.osgi.lf4osgi.core.LoggerCatalogue<OsgiLoggerContext>
-
- de.mnl.osgi.log4j2osgi.OsgiLoggerContextFactory
-
- All Implemented Interfaces:
org.apache.logging.log4j.spi.LoggerContextFactory
public class OsgiLoggerContextFactory extends de.mnl.osgi.lf4osgi.core.LoggerCatalogue<OsgiLoggerContext> implements org.apache.logging.log4j.spi.LoggerContextFactory
A factory for creating OsgiLoggerContext objects.
-
-
Constructor Summary
Constructors Constructor Description OsgiLoggerContextFactory()
Instantiates a new OSGi logger context factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OsgiLoggerContext
getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext)
OsgiLoggerContext
getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext, URI configLocation, String name)
void
removeContext(org.apache.logging.log4j.spi.LoggerContext ignored)
-
-
-
Constructor Detail
-
OsgiLoggerContextFactory
public OsgiLoggerContextFactory()
Instantiates a new OSGi logger context factory.
-
-
Method Detail
-
getContext
public OsgiLoggerContext getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext)
- Specified by:
getContext
in interfaceorg.apache.logging.log4j.spi.LoggerContextFactory
-
getContext
public OsgiLoggerContext getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext, URI configLocation, String name)
- Specified by:
getContext
in interfaceorg.apache.logging.log4j.spi.LoggerContextFactory
-
removeContext
public void removeContext(org.apache.logging.log4j.spi.LoggerContext ignored)
- Specified by:
removeContext
in interfaceorg.apache.logging.log4j.spi.LoggerContextFactory
-
-