Uses of Interface
org.apache.logging.log4j.spi.LoggerContext
-
Packages that use LoggerContext Package Description org.apache.logging.log4j Public API for Log4j 2.org.apache.logging.log4j.simple Simple logging implementation.org.apache.logging.log4j.spi Internal interfaces and classes to be used by authors of logging implementations or for internal use by API classes. -
-
Uses of LoggerContext in org.apache.logging.log4j
Methods in org.apache.logging.log4j that return LoggerContext Modifier and Type Method Description static LoggerContextLogManager. getContext()Returns the current LoggerContext.static LoggerContextLogManager. getContext(boolean currentContext)Returns a LoggerContext.static LoggerContextLogManager. getContext(ClassLoader loader, boolean currentContext)Returns a LoggerContext.static LoggerContextLogManager. getContext(ClassLoader loader, boolean currentContext, Object externalContext)Returns a LoggerContext.static LoggerContextLogManager. getContext(ClassLoader loader, boolean currentContext, Object externalContext, URI configLocation)Returns a LoggerContext.static LoggerContextLogManager. getContext(ClassLoader loader, boolean currentContext, Object externalContext, URI configLocation, String name)Returns a LoggerContext.static LoggerContextLogManager. getContext(ClassLoader loader, boolean currentContext, URI configLocation)Returns a LoggerContext.protected static LoggerContextLogManager. getContext(String fqcn, boolean currentContext)Returns a LoggerContextprotected static LoggerContextLogManager. getContext(String fqcn, ClassLoader loader, boolean currentContext)Returns a LoggerContextprotected static LoggerContextLogManager. getContext(String fqcn, ClassLoader loader, boolean currentContext, URI configLocation, String name)Returns a LoggerContextMethods in org.apache.logging.log4j with parameters of type LoggerContext Modifier and Type Method Description static voidLogManager. shutdown(LoggerContext context)Shutdown the logging system if the logging system supports it. -
Uses of LoggerContext in org.apache.logging.log4j.simple
Classes in org.apache.logging.log4j.simple that implement LoggerContext Modifier and Type Class Description classSimpleLoggerContextA simpleLoggerContextimplementation.Methods in org.apache.logging.log4j.simple that return LoggerContext Modifier and Type Method Description LoggerContextSimpleLoggerContextFactory. getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext)LoggerContextSimpleLoggerContextFactory. getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext, URI configLocation, String name)Methods in org.apache.logging.log4j.simple with parameters of type LoggerContext Modifier and Type Method Description voidSimpleLoggerContextFactory. removeContext(LoggerContext removeContext) -
Uses of LoggerContext in org.apache.logging.log4j.spi
Fields in org.apache.logging.log4j.spi declared as LoggerContext Modifier and Type Field Description static LoggerContext[]LoggerContext. EMPTY_ARRAYEmpty array.Fields in org.apache.logging.log4j.spi with type parameters of type LoggerContext Modifier and Type Field Description protected Map<LoggerContext,ConcurrentMap<String,L>>AbstractLoggerAdapter. registryA map to store loggers for their given LoggerContexts.Methods in org.apache.logging.log4j.spi that return LoggerContext Modifier and Type Method Description protected abstract LoggerContextAbstractLoggerAdapter. getContext()Gets theLoggerContextthat should be used to look up or create loggers.protected LoggerContextAbstractLoggerAdapter. getContext(Class<?> callerClass)Gets theLoggerContextassociated with the given caller class.LoggerContextLoggerContextFactory. getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext)Creates aLoggerContext.LoggerContextLoggerContextFactory. getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext, URI configLocation, String name)Creates aLoggerContext.Methods in org.apache.logging.log4j.spi that return types with arguments of type LoggerContext Modifier and Type Method Description Set<LoggerContext>AbstractLoggerAdapter. getLoggerContexts()For unit testing.Methods in org.apache.logging.log4j.spi with parameters of type LoggerContext Modifier and Type Method Description voidAbstractLoggerAdapter. contextShutdown(LoggerContext loggerContext)voidLoggerContextShutdownAware. contextShutdown(LoggerContext loggerContext)ConcurrentMap<String,L>AbstractLoggerAdapter. getLoggersInContext(LoggerContext context)Gets or creates the ConcurrentMap of named loggers for a given LoggerContext.protected abstract LAbstractLoggerAdapter. newLogger(String name, LoggerContext context)Creates a new named logger for a givenLoggerContext.voidLoggerContextFactory. removeContext(LoggerContext context)Removes knowledge of a LoggerContext.
-