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 -
Method Summary
Modifier and TypeMethodDescriptiongetContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext) getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext, URI configLocation, String name) voidremoveContext(org.apache.logging.log4j.spi.LoggerContext ignored) Methods inherited from class de.mnl.osgi.lf4osgi.core.LoggerCatalogue
findBundle, getLoggerGoupMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.logging.log4j.spi.LoggerContextFactory
hasContext, isClassLoaderDependent, shutdown
-
Constructor Details
-
OsgiLoggerContextFactory
public OsgiLoggerContextFactory()Instantiates a new OSGi logger context factory.
-
-
Method Details
-
getContext
public OsgiLoggerContext getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext) - Specified by:
getContextin interfaceorg.apache.logging.log4j.spi.LoggerContextFactory
-
getContext
public OsgiLoggerContext getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext, URI configLocation, String name) - Specified by:
getContextin interfaceorg.apache.logging.log4j.spi.LoggerContextFactory
-
removeContext
- Specified by:
removeContextin interfaceorg.apache.logging.log4j.spi.LoggerContextFactory
-