Uses of Class
org.apache.logging.log4j.core.LoggerContext
-
Packages that use LoggerContext Package Description org.apache.log4j.config Log4j 1.x compatibility layer.org.apache.log4j.xml Log4j 1.x compatibility layer.org.apache.logging.log4j.core Implementation of Log4j 2.org.apache.logging.log4j.core.appender Log4j 2 Appenders.org.apache.logging.log4j.core.appender.rolling Rolling File Appender and support classes.org.apache.logging.log4j.core.async Provides Asynchronous Logger classes and interfaces for low-latency logging.org.apache.logging.log4j.core.config Configuration of Log4j 2.org.apache.logging.log4j.core.config.builder.api Configuration Builder API for programmatically configuring Log4j.org.apache.logging.log4j.core.config.builder.impl Configuration Builder Implementation.org.apache.logging.log4j.core.config.properties Configuration using Properties files.org.apache.logging.log4j.core.config.xml Classes and interfaces supporting configuration of Log4j 2 with XML.org.apache.logging.log4j.core.impl Log4j 2 private implementation classes.org.apache.logging.log4j.core.jmx Log4j 2 JMX support.org.apache.logging.log4j.core.lookup Log4j 2 Lookups.org.apache.logging.log4j.core.net Log4j 2 network support.org.apache.logging.log4j.core.osgi Collection of OSGi-specific classes for bundles.org.apache.logging.log4j.core.selector Log4j 2 Context Selectors.org.apache.logging.log4j.web The classes in this package are responsible for properly initializing and deinitializing Log4j in a Java EE web application. -
-
Uses of LoggerContext in org.apache.log4j.config
Methods in org.apache.log4j.config with parameters of type LoggerContext Modifier and Type Method Description Configuration
Log4j1ConfigurationFactory. getConfiguration(LoggerContext loggerContext, ConfigurationSource source)
Configuration
PropertiesConfigurationFactory. getConfiguration(LoggerContext loggerContext, ConfigurationSource source)
Constructors in org.apache.log4j.config with parameters of type LoggerContext Constructor Description Log4j1Configuration(LoggerContext loggerContext, ConfigurationSource configurationSource, int monitorIntervalSeconds)
PropertiesConfiguration(LoggerContext loggerContext, java.util.Properties properties)
Constructs a new instance.PropertiesConfiguration(LoggerContext loggerContext, ConfigurationSource source, int monitorIntervalSeconds)
Constructs a new instance. -
Uses of LoggerContext in org.apache.log4j.xml
Methods in org.apache.log4j.xml with parameters of type LoggerContext Modifier and Type Method Description Configuration
XmlConfigurationFactory. getConfiguration(LoggerContext loggerContext, ConfigurationSource source)
Constructors in org.apache.log4j.xml with parameters of type LoggerContext Constructor Description XmlConfiguration(LoggerContext loggerContext, ConfigurationSource source, int monitorIntervalSeconds)
-
Uses of LoggerContext in org.apache.logging.log4j.core
Fields in org.apache.logging.log4j.core declared as LoggerContext Modifier and Type Field Description private LoggerContext
LogEventListener. context
private LoggerContext
Logger. context
Methods in org.apache.logging.log4j.core that return LoggerContext Modifier and Type Method Description LoggerContext
Logger. getContext()
Returns the LoggerContext this Logger is associated with.static LoggerContext
LoggerContext. getContext()
Returns the current LoggerContext.static LoggerContext
LoggerContext. getContext(boolean currentContext)
Returns a LoggerContext.static LoggerContext
LoggerContext. getContext(java.lang.ClassLoader loader, boolean currentContext, java.net.URI configLocation)
Returns a LoggerContext.LoggerContext
DefaultLoggerContextAccessor. getLoggerContext()
LoggerContext
LoggerContextAccessor. getLoggerContext()
Methods in org.apache.logging.log4j.core with parameters of type LoggerContext Modifier and Type Method Description protected Logger
LoggerContext. newInstance(LoggerContext ctx, java.lang.String name, MessageFactory messageFactory)
Constructors in org.apache.logging.log4j.core with parameters of type LoggerContext Constructor Description Logger(LoggerContext context, java.lang.String name, MessageFactory messageFactory)
The constructor. -
Uses of LoggerContext in org.apache.logging.log4j.core.appender
Fields in org.apache.logging.log4j.core.appender declared as LoggerContext Modifier and Type Field Description private LoggerContext
AbstractManager. loggerContext
Methods in org.apache.logging.log4j.core.appender that return LoggerContext Modifier and Type Method Description LoggerContext
AbstractManager. getLoggerContext()
Gets the logger context used to create this instance or null.LoggerContext
ConfigurationFactoryData. getLoggerContext()
Gets the LoggerContext from the Configuration or null.Constructors in org.apache.logging.log4j.core.appender with parameters of type LoggerContext Constructor Description AbstractManager(LoggerContext loggerContext, java.lang.String name)
FileManager(LoggerContext loggerContext, java.lang.String fileName, java.io.OutputStream os, boolean append, boolean locking, boolean createOnDemand, java.lang.String advertiseURI, Layout<? extends java.io.Serializable> layout, boolean writeHeader, java.nio.ByteBuffer buffer)
Deprecated.FileManager(LoggerContext loggerContext, java.lang.String fileName, java.io.OutputStream os, boolean append, boolean locking, boolean createOnDemand, java.lang.String advertiseURI, Layout<? extends java.io.Serializable> layout, java.lang.String filePermissions, java.lang.String fileOwner, java.lang.String fileGroup, boolean writeHeader, java.nio.ByteBuffer buffer)
HttpManager(Configuration configuration, LoggerContext loggerContext, java.lang.String name)
HttpURLConnectionManager(Configuration configuration, LoggerContext loggerContext, java.lang.String name, java.net.URL url, java.lang.String method, int connectTimeoutMillis, int readTimeoutMillis, Property[] headers, SslConfiguration sslConfiguration, boolean verifyHostname)
OutputStreamManager(LoggerContext loggerContext, java.io.OutputStream os, java.lang.String streamName, boolean createOnDemand, Layout<? extends java.io.Serializable> layout, boolean writeHeader, java.nio.ByteBuffer byteBuffer)
RandomAccessFileManager(LoggerContext loggerContext, java.io.RandomAccessFile file, java.lang.String fileName, java.io.OutputStream os, int bufferSize, java.lang.String advertiseURI, Layout<? extends java.io.Serializable> layout, boolean writeHeader)
-
Uses of LoggerContext in org.apache.logging.log4j.core.appender.rolling
Constructors in org.apache.logging.log4j.core.appender.rolling with parameters of type LoggerContext Constructor Description RollingFileManager(LoggerContext loggerContext, java.lang.String fileName, java.lang.String pattern, java.io.OutputStream os, boolean append, boolean createOnDemand, long size, long initialTime, TriggeringPolicy triggeringPolicy, RolloverStrategy rolloverStrategy, java.lang.String advertiseURI, Layout<? extends java.io.Serializable> layout, boolean writeHeader, java.nio.ByteBuffer buffer)
Deprecated.RollingFileManager(LoggerContext loggerContext, java.lang.String fileName, java.lang.String pattern, java.io.OutputStream os, boolean append, boolean createOnDemand, long size, long initialTime, TriggeringPolicy triggeringPolicy, RolloverStrategy rolloverStrategy, java.lang.String advertiseURI, Layout<? extends java.io.Serializable> layout, java.lang.String filePermissions, java.lang.String fileOwner, java.lang.String fileGroup, boolean writeHeader, java.nio.ByteBuffer buffer)
RollingRandomAccessFileManager(LoggerContext loggerContext, java.io.RandomAccessFile raf, java.lang.String fileName, java.lang.String pattern, java.io.OutputStream os, boolean append, boolean immediateFlush, int bufferSize, long size, long time, TriggeringPolicy policy, RolloverStrategy strategy, java.lang.String advertiseURI, Layout<? extends java.io.Serializable> layout, boolean writeHeader)
Deprecated.RollingRandomAccessFileManager(LoggerContext loggerContext, java.io.RandomAccessFile raf, java.lang.String fileName, java.lang.String pattern, java.io.OutputStream os, boolean append, boolean immediateFlush, int bufferSize, long size, long initialTime, TriggeringPolicy policy, RolloverStrategy strategy, java.lang.String advertiseURI, Layout<? extends java.io.Serializable> layout, java.lang.String filePermissions, java.lang.String fileOwner, java.lang.String fileGroup, boolean writeHeader)
-
Uses of LoggerContext in org.apache.logging.log4j.core.async
Subclasses of LoggerContext in org.apache.logging.log4j.core.async Modifier and Type Class Description class
AsyncLoggerContext
LoggerContext
that createsAsyncLogger
objects.Methods in org.apache.logging.log4j.core.async that return LoggerContext Modifier and Type Method Description protected LoggerContext
AsyncLoggerContextSelector. createContext(java.lang.String name, java.net.URI configLocation)
LoggerContext
BasicAsyncLoggerContextSelector. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, boolean currentContext)
LoggerContext
BasicAsyncLoggerContextSelector. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, boolean currentContext, java.net.URI configLocation)
Methods in org.apache.logging.log4j.core.async that return types with arguments of type LoggerContext Modifier and Type Method Description java.util.List<LoggerContext>
BasicAsyncLoggerContextSelector. getLoggerContexts()
Methods in org.apache.logging.log4j.core.async with parameters of type LoggerContext Modifier and Type Method Description protected Logger
AsyncLoggerContext. newInstance(LoggerContext ctx, java.lang.String name, MessageFactory messageFactory)
void
BasicAsyncLoggerContextSelector. removeContext(LoggerContext context)
Constructors in org.apache.logging.log4j.core.async with parameters of type LoggerContext Constructor Description AsyncLogger(LoggerContext context, java.lang.String name, MessageFactory messageFactory, AsyncLoggerDisruptor loggerDisruptor)
Constructs anAsyncLogger
with the specified context, name and message factory. -
Uses of LoggerContext in org.apache.logging.log4j.core.config
Fields in org.apache.logging.log4j.core.config with type parameters of type LoggerContext Modifier and Type Field Description private java.lang.ref.WeakReference<LoggerContext>
AbstractConfiguration. loggerContext
Methods in org.apache.logging.log4j.core.config that return LoggerContext Modifier and Type Method Description LoggerContext
AbstractConfiguration. getLoggerContext()
LoggerContext
Configuration. getLoggerContext()
Gets the logger context.static LoggerContext
Configurator. initialize(java.lang.ClassLoader loader, Configuration configuration)
Initializes the Logging Context.static LoggerContext
Configurator. initialize(java.lang.ClassLoader loader, Configuration configuration, java.lang.Object externalContext)
Initializes the Logging Context.static LoggerContext
Configurator. initialize(java.lang.ClassLoader loader, ConfigurationSource source)
Initializes the Logging Context.static LoggerContext
Configurator. initialize(java.lang.ClassLoader loader, ConfigurationSource source, java.lang.Object externalContext)
Initializes the Logging Context.static LoggerContext
Configurator. initialize(java.lang.String name, java.lang.ClassLoader loader, java.lang.String configLocation)
Initializes the Logging Context.static LoggerContext
Configurator. initialize(java.lang.String name, java.lang.ClassLoader loader, java.lang.String configLocation, java.lang.Object externalContext)
Initializes the Logging Context.static LoggerContext
Configurator. initialize(java.lang.String name, java.lang.ClassLoader loader, java.net.URI configLocation)
Initializes the Logging Context.static LoggerContext
Configurator. initialize(java.lang.String name, java.lang.ClassLoader loader, java.net.URI configLocation, java.lang.Object externalContext)
Initializes the Logging Context.static LoggerContext
Configurator. initialize(java.lang.String name, java.lang.ClassLoader loader, java.net.URI configLocation, java.util.Map.Entry<java.lang.String,java.lang.Object> entry)
Initializes the Logging Context.static LoggerContext
Configurator. initialize(java.lang.String name, java.lang.ClassLoader loader, java.util.List<java.net.URI> configLocations, java.lang.Object externalContext)
static LoggerContext
Configurator. initialize(java.lang.String name, java.lang.String configLocation)
Initializes the Logging Context.static LoggerContext
Configurator. initialize(Configuration configuration)
Initializes the Logging Context.Methods in org.apache.logging.log4j.core.config with parameters of type LoggerContext Modifier and Type Method Description private Configuration
ConfigurationFactory.Factory. getConfiguration(java.lang.String requiredVersion, LoggerContext loggerContext, java.lang.String configLocationStr)
private Configuration
ConfigurationFactory.Factory. getConfiguration(LoggerContext loggerContext, boolean isTest, java.lang.String name)
private Configuration
ConfigurationFactory.Factory. getConfiguration(LoggerContext loggerContext, java.lang.String configLocationStr)
Configuration
ConfigurationFactory.Factory. getConfiguration(LoggerContext loggerContext, java.lang.String name, java.net.URI configLocation)
Default Factory Constructor.Configuration
ConfigurationFactory.Factory. getConfiguration(LoggerContext loggerContext, ConfigurationSource source)
Configuration
ConfigurationFactory. getConfiguration(LoggerContext loggerContext, java.lang.String name, java.net.URI configLocation)
Returns the Configuration.Configuration
ConfigurationFactory. getConfiguration(LoggerContext loggerContext, java.lang.String name, java.net.URI configLocation, java.lang.ClassLoader loader)
Returns the Configuration obtained using a given ClassLoader.abstract Configuration
ConfigurationFactory. getConfiguration(LoggerContext loggerContext, ConfigurationSource source)
private static void
Configurator. setLevel(LoggerContext loggerContext, java.lang.String loggerName, Level level)
void
LoggerContextAware. setLoggerContext(LoggerContext loggerContext)
Injects the current LoggerContext into this object.private static void
Configurator. setRootLevel(Level level, LoggerContext loggerContext)
static void
Configurator. shutdown(LoggerContext ctx)
Shuts down the given logger context.static boolean
Configurator. shutdown(LoggerContext ctx, long timeout, java.util.concurrent.TimeUnit timeUnit)
Shuts down the given logger context.Constructors in org.apache.logging.log4j.core.config with parameters of type LoggerContext Constructor Description AbstractConfiguration(LoggerContext loggerContext, ConfigurationSource configurationSource)
Constructor. -
Uses of LoggerContext in org.apache.logging.log4j.core.config.builder.api
Methods in org.apache.logging.log4j.core.config.builder.api with parameters of type LoggerContext Modifier and Type Method Description void
ConfigurationBuilder. setLoggerContext(LoggerContext loggerContext)
Sets the logger context. -
Uses of LoggerContext in org.apache.logging.log4j.core.config.builder.impl
Fields in org.apache.logging.log4j.core.config.builder.impl declared as LoggerContext Modifier and Type Field Description private LoggerContext
DefaultConfigurationBuilder. loggerContext
Methods in org.apache.logging.log4j.core.config.builder.impl with parameters of type LoggerContext Modifier and Type Method Description void
DefaultConfigurationBuilder. setLoggerContext(LoggerContext loggerContext)
Constructors in org.apache.logging.log4j.core.config.builder.impl with parameters of type LoggerContext Constructor Description BuiltConfiguration(LoggerContext loggerContext, ConfigurationSource source, Component rootComponent)
-
Uses of LoggerContext in org.apache.logging.log4j.core.config.properties
Fields in org.apache.logging.log4j.core.config.properties declared as LoggerContext Modifier and Type Field Description private LoggerContext
PropertiesConfigurationBuilder. loggerContext
Methods in org.apache.logging.log4j.core.config.properties that return LoggerContext Modifier and Type Method Description LoggerContext
PropertiesConfigurationBuilder. getLoggerContext()
Methods in org.apache.logging.log4j.core.config.properties with parameters of type LoggerContext Modifier and Type Method Description PropertiesConfiguration
PropertiesConfigurationFactory. getConfiguration(LoggerContext loggerContext, ConfigurationSource source)
PropertiesConfigurationBuilder
PropertiesConfigurationBuilder. setLoggerContext(LoggerContext loggerContext)
Constructors in org.apache.logging.log4j.core.config.properties with parameters of type LoggerContext Constructor Description PropertiesConfiguration(LoggerContext loggerContext, ConfigurationSource source, Component root)
-
Uses of LoggerContext in org.apache.logging.log4j.core.config.xml
Methods in org.apache.logging.log4j.core.config.xml with parameters of type LoggerContext Modifier and Type Method Description Configuration
XmlConfigurationFactory. getConfiguration(LoggerContext loggerContext, ConfigurationSource source)
Returns the Configuration.Constructors in org.apache.logging.log4j.core.config.xml with parameters of type LoggerContext Constructor Description XmlConfiguration(LoggerContext loggerContext, ConfigurationSource configSource)
-
Uses of LoggerContext in org.apache.logging.log4j.core.impl
Fields in org.apache.logging.log4j.core.impl with type parameters of type LoggerContext Modifier and Type Field Description static java.lang.ThreadLocal<LoggerContext>
ContextAnchor. THREAD_CONTEXT
Anchor for the LoggerContext for the current Thread.Methods in org.apache.logging.log4j.core.impl that return LoggerContext Modifier and Type Method Description LoggerContext
Log4jContextFactory. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, java.lang.Object externalContext, boolean currentContext)
Loads the LoggerContext using the ContextSelector.LoggerContext
Log4jContextFactory. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, java.lang.Object externalContext, boolean currentContext, java.net.URI configLocation, java.lang.String name)
Loads the LoggerContext using the ContextSelector.LoggerContext
Log4jContextFactory. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, java.lang.Object externalContext, boolean currentContext, java.util.List<java.net.URI> configLocations, java.lang.String name)
LoggerContext
Log4jContextFactory. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, java.lang.Object externalContext, boolean currentContext, Configuration configuration)
Loads the LoggerContext using the ContextSelector using the provided ConfigurationLoggerContext
Log4jContextFactory. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, java.lang.Object externalContext, boolean currentContext, ConfigurationSource source)
Loads the LoggerContext using the ContextSelector.LoggerContext
Log4jContextFactory. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, java.util.Map.Entry<java.lang.String,java.lang.Object> entry, boolean currentContext, java.net.URI configLocation, java.lang.String name)
-
Uses of LoggerContext in org.apache.logging.log4j.core.jmx
Fields in org.apache.logging.log4j.core.jmx declared as LoggerContext Modifier and Type Field Description private LoggerContext
LoggerConfigAdmin. loggerContext
private LoggerContext
LoggerContextAdmin. loggerContext
Methods in org.apache.logging.log4j.core.jmx with parameters of type LoggerContext Modifier and Type Method Description private static void
Server. registerAppenders(LoggerContext ctx, javax.management.MBeanServer mbs, java.util.concurrent.Executor executor)
private static void
Server. registerLoggerConfigs(LoggerContext ctx, javax.management.MBeanServer mbs, java.util.concurrent.Executor executor)
Constructors in org.apache.logging.log4j.core.jmx with parameters of type LoggerContext Constructor Description LoggerConfigAdmin(LoggerContext loggerContext, LoggerConfig loggerConfig)
Constructs a newLoggerConfigAdmin
with the specified LoggerContext and logger config.LoggerContextAdmin(LoggerContext loggerContext, java.util.concurrent.Executor executor)
Constructs a newLoggerContextAdmin
with theExecutor
to be used for sendingNotification
s asynchronously to listeners. -
Uses of LoggerContext in org.apache.logging.log4j.core.lookup
Fields in org.apache.logging.log4j.core.lookup with type parameters of type LoggerContext Modifier and Type Field Description protected java.lang.ref.WeakReference<LoggerContext>
Interpolator. loggerContext
Methods in org.apache.logging.log4j.core.lookup with parameters of type LoggerContext Modifier and Type Method Description void
Interpolator. setLoggerContext(LoggerContext loggerContext)
-
Uses of LoggerContext in org.apache.logging.log4j.core.net
Constructors in org.apache.logging.log4j.core.net with parameters of type LoggerContext Constructor Description MailManager(LoggerContext loggerContext, java.lang.String name)
-
Uses of LoggerContext in org.apache.logging.log4j.core.osgi
Methods in org.apache.logging.log4j.core.osgi that return LoggerContext Modifier and Type Method Description LoggerContext
BundleContextSelector. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, boolean currentContext, java.net.URI configLocation)
private LoggerContext
BundleContextSelector. getLoggerContext(org.osgi.framework.Bundle bundle)
private static LoggerContext
BundleContextSelector. locateContext(org.osgi.framework.Bundle bundle, java.net.URI configLocation)
Methods in org.apache.logging.log4j.core.osgi with parameters of type LoggerContext Modifier and Type Method Description private void
BundleContextSelector. removeLoggerContext(LoggerContext context)
-
Uses of LoggerContext in org.apache.logging.log4j.core.selector
Fields in org.apache.logging.log4j.core.selector declared as LoggerContext Modifier and Type Field Description private static LoggerContext
BasicContextSelector. CONTEXT
private static LoggerContext
JndiContextSelector. CONTEXT
Fields in org.apache.logging.log4j.core.selector with type parameters of type LoggerContext Modifier and Type Field Description protected static java.util.concurrent.ConcurrentMap<java.lang.String,java.util.concurrent.atomic.AtomicReference<java.lang.ref.WeakReference<LoggerContext>>>
ClassLoaderContextSelector. CONTEXT_MAP
private static java.util.concurrent.ConcurrentMap<java.lang.String,LoggerContext>
JndiContextSelector. CONTEXT_MAP
private static java.util.concurrent.atomic.AtomicReference<LoggerContext>
ClassLoaderContextSelector. DEFAULT_CONTEXT
Methods in org.apache.logging.log4j.core.selector that return LoggerContext Modifier and Type Method Description protected LoggerContext
ClassLoaderContextSelector. createContext(java.lang.String name, java.net.URI configLocation)
private LoggerContext
ClassLoaderContextSelector. findContext(java.lang.ClassLoader loaderOrNull)
LoggerContext
BasicContextSelector. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, boolean currentContext)
LoggerContext
BasicContextSelector. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, boolean currentContext, java.net.URI configLocation)
LoggerContext
ClassLoaderContextSelector. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, boolean currentContext)
LoggerContext
ClassLoaderContextSelector. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, boolean currentContext, java.net.URI configLocation)
LoggerContext
ClassLoaderContextSelector. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, java.util.Map.Entry<java.lang.String,java.lang.Object> entry, boolean currentContext, java.net.URI configLocation)
LoggerContext
ContextSelector. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, boolean currentContext)
Returns the LoggerContext.LoggerContext
ContextSelector. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, boolean currentContext, java.net.URI configLocation)
Returns the LoggerContext.default LoggerContext
ContextSelector. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, java.util.Map.Entry<java.lang.String,java.lang.Object> entry, boolean currentContext)
Returns the LoggerContext.default LoggerContext
ContextSelector. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, java.util.Map.Entry<java.lang.String,java.lang.Object> entry, boolean currentContext, java.net.URI configLocation)
Returns the LoggerContext.LoggerContext
JndiContextSelector. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, boolean currentContext)
LoggerContext
JndiContextSelector. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, boolean currentContext, java.net.URI configLocation)
protected LoggerContext
ClassLoaderContextSelector. getDefault()
LoggerContext
BasicContextSelector. locateContext(java.lang.String name, java.lang.String configLocation)
private LoggerContext
ClassLoaderContextSelector. locateContext(java.lang.ClassLoader loaderOrNull, java.util.Map.Entry<java.lang.String,java.lang.Object> entry, java.net.URI configLocation)
LoggerContext
JndiContextSelector. locateContext(java.lang.String name, java.lang.Object externalContext, java.net.URI configLocation)
LoggerContext
NamedContextSelector. locateContext(java.lang.String name, java.lang.Object externalContext, java.net.URI configLocation)
Locate the LoggerContext with the specified name.LoggerContext
JndiContextSelector. removeContext(java.lang.String name)
LoggerContext
NamedContextSelector. removeContext(java.lang.String name)
Locate the LoggerContext with the specified name using the default configuration.Methods in org.apache.logging.log4j.core.selector that return types with arguments of type LoggerContext Modifier and Type Method Description java.util.List<LoggerContext>
BasicContextSelector. getLoggerContexts()
java.util.List<LoggerContext>
ClassLoaderContextSelector. getLoggerContexts()
java.util.List<LoggerContext>
ContextSelector. getLoggerContexts()
Returns a List of all the available LoggerContexts.java.util.List<LoggerContext>
JndiContextSelector. getLoggerContexts()
Methods in org.apache.logging.log4j.core.selector with parameters of type LoggerContext Modifier and Type Method Description void
BasicContextSelector. removeContext(LoggerContext context)
void
ClassLoaderContextSelector. removeContext(LoggerContext context)
void
ContextSelector. removeContext(LoggerContext context)
Remove any references to the LoggerContext.void
JndiContextSelector. removeContext(LoggerContext context)
-
Uses of LoggerContext in org.apache.logging.log4j.web
Fields in org.apache.logging.log4j.web declared as LoggerContext Modifier and Type Field Description private LoggerContext
Log4jWebInitializerImpl. loggerContext
Methods in org.apache.logging.log4j.web that return LoggerContext Modifier and Type Method Description static LoggerContext
WebLoggerContextUtils. getRequiredWebLoggerContext(javax.servlet.ServletContext servletContext)
Finds the mainLoggerContext
configured for the given ServletContext.static LoggerContext
WebLoggerContextUtils. getWebLoggerContext(javax.servlet.ServletContext servletContext)
Finds the mainLoggerContext
configured for the given ServletContext.Methods in org.apache.logging.log4j.web with parameters of type LoggerContext Modifier and Type Method Description static void
WebLoggerContextUtils. setServletContext(LoggerContext lc, javax.servlet.ServletContext servletContext)
-