Package org.ops4j.pax.logging.log4jv2
Class Log4jv2LoggerContextFactory
- java.lang.Object
-
- org.ops4j.pax.logging.log4jv2.Log4jv2LoggerContextFactory
-
- All Implemented Interfaces:
org.apache.logging.log4j.spi.LoggerContextFactory
public class Log4jv2LoggerContextFactory extends Object implements org.apache.logging.log4j.spi.LoggerContextFactory
This is the main class that's briding Log4J2 API into Pax Logging. It's responsibility is to produceLoggerContextobjects. See http://logging.apache.org/log4j/2.x/manual/architecture.html Even if there are scenarios where multiplecontextsmay be used, this factory holds single, static Pax Logging-specificLoggerContext
-
-
Constructor Summary
Constructors Constructor Description Log4jv2LoggerContextFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.logging.log4j.spi.LoggerContextgetContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext)org.apache.logging.log4j.spi.LoggerContextgetContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext, URI configLocation, String name)voidremoveContext(org.apache.logging.log4j.spi.LoggerContext removeContext)
-
-
-
Method Detail
-
getContext
public org.apache.logging.log4j.spi.LoggerContext getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext)
- Specified by:
getContextin interfaceorg.apache.logging.log4j.spi.LoggerContextFactory
-
getContext
public org.apache.logging.log4j.spi.LoggerContext getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext, URI configLocation, String name)
- Specified by:
getContextin interfaceorg.apache.logging.log4j.spi.LoggerContextFactory
-
removeContext
public void removeContext(org.apache.logging.log4j.spi.LoggerContext removeContext)
- Specified by:
removeContextin interfaceorg.apache.logging.log4j.spi.LoggerContextFactory
-
-