Uses of Class
org.apache.logging.log4j.core.LoggerContext
-
Packages that use LoggerContext Package Description org.apache.log4j Log4j 1.x compatibility layer.org.apache.log4j.config 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.json Classes and interfaces supporting configuration of Log4j 2 with JSON.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.config.yaml Classes and interfaces supporting configuration of Log4j 2 with YAML.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.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
Constructors in org.apache.log4j with parameters of type LoggerContext Constructor Description Category(LoggerContext context, java.lang.String name)Constructor used by Logger to specify a LoggerContext. -
Uses of LoggerContext in org.apache.log4j.config
Methods in org.apache.log4j.config with parameters of type LoggerContext Modifier and Type Method Description ConfigurationLog4j1ConfigurationFactory. getConfiguration(LoggerContext loggerContext, ConfigurationSource source) -
Uses of LoggerContext in org.apache.logging.log4j.core
Methods in org.apache.logging.log4j.core that return LoggerContext Modifier and Type Method Description LoggerContextLogger. getContext()Returns the LoggerContext this Logger is associated with.static LoggerContextLoggerContext. getContext()Returns the current LoggerContext.static LoggerContextLoggerContext. getContext(boolean currentContext)Returns a LoggerContext.static LoggerContextLoggerContext. getContext(java.lang.ClassLoader loader, boolean currentContext, java.net.URI configLocation)Returns a LoggerContext.LoggerContextDefaultLoggerContextAccessor. getLoggerContext()LoggerContextLoggerContextAccessor. getLoggerContext()Methods in org.apache.logging.log4j.core with parameters of type LoggerContext Modifier and Type Method Description protected LoggerLoggerContext. 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
Methods in org.apache.logging.log4j.core.appender that return LoggerContext Modifier and Type Method Description LoggerContextAbstractManager. getLoggerContext()Gets the logger context used to create this instance or null.LoggerContextConfigurationFactoryData. 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 classAsyncLoggerContextLoggerContextthat createsAsyncLoggerobjects.Methods in org.apache.logging.log4j.core.async that return LoggerContext Modifier and Type Method Description protected LoggerContextAsyncLoggerContextSelector. createContext(java.lang.String name, java.net.URI configLocation)Methods in org.apache.logging.log4j.core.async with parameters of type LoggerContext Modifier and Type Method Description protected LoggerAsyncLoggerContext. newInstance(LoggerContext ctx, java.lang.String name, MessageFactory messageFactory)Constructors in org.apache.logging.log4j.core.async with parameters of type LoggerContext Constructor Description AsyncLogger(LoggerContext context, java.lang.String name, MessageFactory messageFactory, org.apache.logging.log4j.core.async.AsyncLoggerDisruptor loggerDisruptor)Constructs anAsyncLoggerwith the specified context, name and message factory. -
Uses of LoggerContext in org.apache.logging.log4j.core.config
Methods in org.apache.logging.log4j.core.config that return LoggerContext Modifier and Type Method Description LoggerContextAbstractConfiguration. getLoggerContext()LoggerContextConfiguration. getLoggerContext()Gets the logger context.static LoggerContextConfigurator. initialize(java.lang.ClassLoader loader, Configuration configuration)Initializes the Logging Context.static LoggerContextConfigurator. initialize(java.lang.ClassLoader loader, Configuration configuration, java.lang.Object externalContext)Initializes the Logging Context.static LoggerContextConfigurator. initialize(java.lang.ClassLoader loader, ConfigurationSource source)Initializes the Logging Context.static LoggerContextConfigurator. initialize(java.lang.ClassLoader loader, ConfigurationSource source, java.lang.Object externalContext)Initializes the Logging Context.static LoggerContextConfigurator. initialize(java.lang.String name, java.lang.ClassLoader loader, java.lang.String configLocation)Initializes the Logging Context.static LoggerContextConfigurator. initialize(java.lang.String name, java.lang.ClassLoader loader, java.lang.String configLocation, java.lang.Object externalContext)Initializes the Logging Context.static LoggerContextConfigurator. initialize(java.lang.String name, java.lang.ClassLoader loader, java.net.URI configLocation)Initializes the Logging Context.static LoggerContextConfigurator. initialize(java.lang.String name, java.lang.ClassLoader loader, java.net.URI configLocation, java.lang.Object externalContext)Initializes the Logging Context.static LoggerContextConfigurator. initialize(java.lang.String name, java.lang.ClassLoader loader, java.util.List<java.net.URI> configLocations, java.lang.Object externalContext)static LoggerContextConfigurator. initialize(java.lang.String name, java.lang.String configLocation)Initializes the Logging Context.static LoggerContextConfigurator. 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 ConfigurationConfigurationFactory. getConfiguration(LoggerContext loggerContext, java.lang.String name, java.net.URI configLocation)Returns the Configuration.ConfigurationConfigurationFactory. getConfiguration(LoggerContext loggerContext, java.lang.String name, java.net.URI configLocation, java.lang.ClassLoader loader)Returns the Configuration obtained using a given ClassLoader.abstract ConfigurationConfigurationFactory. getConfiguration(LoggerContext loggerContext, ConfigurationSource source)static voidConfigurator. shutdown(LoggerContext ctx)Shuts down the given logger context.static booleanConfigurator. 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 voidConfigurationBuilder. setLoggerContext(LoggerContext loggerContext)Sets the logger context. -
Uses of LoggerContext in org.apache.logging.log4j.core.config.builder.impl
Methods in org.apache.logging.log4j.core.config.builder.impl with parameters of type LoggerContext Modifier and Type Method Description voidDefaultConfigurationBuilder. 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.json
Methods in org.apache.logging.log4j.core.config.json with parameters of type LoggerContext Modifier and Type Method Description ConfigurationJsonConfigurationFactory. getConfiguration(LoggerContext loggerContext, ConfigurationSource source)Constructors in org.apache.logging.log4j.core.config.json with parameters of type LoggerContext Constructor Description JsonConfiguration(LoggerContext loggerContext, ConfigurationSource configSource) -
Uses of LoggerContext in org.apache.logging.log4j.core.config.properties
Methods in org.apache.logging.log4j.core.config.properties that return LoggerContext Modifier and Type Method Description LoggerContextPropertiesConfigurationBuilder. getLoggerContext()Methods in org.apache.logging.log4j.core.config.properties with parameters of type LoggerContext Modifier and Type Method Description PropertiesConfigurationPropertiesConfigurationFactory. getConfiguration(LoggerContext loggerContext, ConfigurationSource source)PropertiesConfigurationBuilderPropertiesConfigurationBuilder. 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 ConfigurationXmlConfigurationFactory. 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.config.yaml
Methods in org.apache.logging.log4j.core.config.yaml with parameters of type LoggerContext Modifier and Type Method Description ConfigurationYamlConfigurationFactory. getConfiguration(LoggerContext loggerContext, ConfigurationSource source)Constructors in org.apache.logging.log4j.core.config.yaml with parameters of type LoggerContext Constructor Description YamlConfiguration(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_CONTEXTAnchor for the LoggerContext for the current Thread.Methods in org.apache.logging.log4j.core.impl that return LoggerContext Modifier and Type Method Description LoggerContextLog4jContextFactory. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, java.lang.Object externalContext, boolean currentContext)Loads the LoggerContext using the ContextSelector.LoggerContextLog4jContextFactory. 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.LoggerContextLog4jContextFactory. 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)LoggerContextLog4jContextFactory. 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 ConfigurationLoggerContextLog4jContextFactory. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, java.lang.Object externalContext, boolean currentContext, ConfigurationSource source)Loads the LoggerContext using the ContextSelector. -
Uses of LoggerContext in org.apache.logging.log4j.core.jmx
Constructors in org.apache.logging.log4j.core.jmx with parameters of type LoggerContext Constructor Description LoggerConfigAdmin(LoggerContext loggerContext, LoggerConfig loggerConfig)Constructs a newLoggerConfigAdminwith the specified LoggerContext and logger config.LoggerContextAdmin(LoggerContext loggerContext, java.util.concurrent.Executor executor)Constructs a newLoggerContextAdminwith theExecutorto be used for sendingNotifications asynchronously to listeners. -
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 LoggerContextBundleContextSelector. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, boolean currentContext, java.net.URI configLocation) -
Uses of LoggerContext in org.apache.logging.log4j.core.selector
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_MAPMethods in org.apache.logging.log4j.core.selector that return LoggerContext Modifier and Type Method Description protected LoggerContextClassLoaderContextSelector. createContext(java.lang.String name, java.net.URI configLocation)LoggerContextBasicContextSelector. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, boolean currentContext)LoggerContextBasicContextSelector. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, boolean currentContext, java.net.URI configLocation)LoggerContextClassLoaderContextSelector. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, boolean currentContext)LoggerContextClassLoaderContextSelector. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, boolean currentContext, java.net.URI configLocation)LoggerContextContextSelector. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, boolean currentContext)Returns the LoggerContext.LoggerContextContextSelector. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, boolean currentContext, java.net.URI configLocation)Returns the LoggerContext.LoggerContextJndiContextSelector. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, boolean currentContext)LoggerContextJndiContextSelector. getContext(java.lang.String fqcn, java.lang.ClassLoader loader, boolean currentContext, java.net.URI configLocation)protected LoggerContextClassLoaderContextSelector. getDefault()LoggerContextBasicContextSelector. locateContext(java.lang.String name, java.lang.String configLocation)LoggerContextJndiContextSelector. locateContext(java.lang.String name, java.lang.Object externalContext, java.net.URI configLocation)LoggerContextNamedContextSelector. locateContext(java.lang.String name, java.lang.Object externalContext, java.net.URI configLocation)Locate the LoggerContext with the specified name.LoggerContextJndiContextSelector. removeContext(java.lang.String name)LoggerContextNamedContextSelector. 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 voidBasicContextSelector. removeContext(LoggerContext context)voidClassLoaderContextSelector. removeContext(LoggerContext context)voidContextSelector. removeContext(LoggerContext context)Remove any references to the LoggerContext.voidJndiContextSelector. removeContext(LoggerContext context) -
Uses of LoggerContext in org.apache.logging.log4j.web
Methods in org.apache.logging.log4j.web that return LoggerContext Modifier and Type Method Description static LoggerContextWebLoggerContextUtils. getRequiredWebLoggerContext(javax.servlet.ServletContext servletContext)Finds the mainLoggerContextconfigured for the given ServletContext.static LoggerContextWebLoggerContextUtils. getWebLoggerContext(javax.servlet.ServletContext servletContext)Finds the mainLoggerContextconfigured for the given ServletContext.
-