Class Log4JToL4TLoggerContextFactory
java.lang.Object
dev.pfaff.log4truth.compat.log4j.Log4JToL4TLoggerContextFactory
- All Implemented Interfaces:
org.apache.logging.log4j.spi.LoggerContextFactory
public final class Log4JToL4TLoggerContextFactory
extends Object
implements org.apache.logging.log4j.spi.LoggerContextFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.logging.log4j.spi.LoggerContext
getContext
(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext) org.apache.logging.log4j.spi.LoggerContext
getContext
(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext, URI configLocation, String name) boolean
void
removeContext
(org.apache.logging.log4j.spi.LoggerContext context) void
shutdown
(String fqcn, ClassLoader loader, boolean currentContext, boolean allContexts) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.logging.log4j.spi.LoggerContextFactory
hasContext
-
Constructor Details
-
Log4JToL4TLoggerContextFactory
public Log4JToL4TLoggerContextFactory()
-
-
Method Details
-
getContext
public org.apache.logging.log4j.spi.LoggerContext getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext) - Specified by:
getContext
in 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:
getContext
in interfaceorg.apache.logging.log4j.spi.LoggerContextFactory
-
removeContext
public void removeContext(org.apache.logging.log4j.spi.LoggerContext context) - Specified by:
removeContext
in interfaceorg.apache.logging.log4j.spi.LoggerContextFactory
-
shutdown
- Specified by:
shutdown
in interfaceorg.apache.logging.log4j.spi.LoggerContextFactory
-
isClassLoaderDependent
public boolean isClassLoaderDependent()- Specified by:
isClassLoaderDependent
in interfaceorg.apache.logging.log4j.spi.LoggerContextFactory
-