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.spi 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.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.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. -
-
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 source, int monitorIntervalSeconds)
PropertiesConfiguration(LoggerContext loggerContext, ConfigurationSource source, int monitorIntervalSeconds)
No argument constructor. -
Uses of LoggerContext in org.apache.log4j.spi
Methods in org.apache.log4j.spi with parameters of type LoggerContext Modifier and Type Method Description void
Configurator. doConfigure(InputStream inputStream, LoggerContext loggerContext)
Interpret a resource pointed by a InputStream and set up log4j accordingly.void
Configurator. doConfigure(URL url, LoggerContext loggerContext)
Interpret a resource pointed by a URL and set up log4j accordingly. -
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
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(ClassLoader loader, boolean currentContext, 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, String name, MessageFactory messageFactory)
Constructors in org.apache.logging.log4j.core with parameters of type LoggerContext Constructor Description Logger(LoggerContext context, 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 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, String name)
FileManager(LoggerContext loggerContext, String fileName, OutputStream os, boolean append, boolean locking, boolean createOnDemand, String advertiseURI, Layout<? extends Serializable> layout, boolean writeHeader, ByteBuffer buffer)
Deprecated.FileManager(LoggerContext loggerContext, String fileName, OutputStream os, boolean append, boolean locking, boolean createOnDemand, String advertiseURI, Layout<? extends Serializable> layout, String filePermissions, String fileOwner, String fileGroup, boolean writeHeader, ByteBuffer buffer)
HttpManager(Configuration configuration, LoggerContext loggerContext, String name)
HttpURLConnectionManager(Configuration configuration, LoggerContext loggerContext, String name, URL url, String method, int connectTimeoutMillis, int readTimeoutMillis, Property[] headers, SslConfiguration sslConfiguration, boolean verifyHostname)
OutputStreamManager(LoggerContext loggerContext, OutputStream os, String streamName, boolean createOnDemand, Layout<? extends Serializable> layout, boolean writeHeader, ByteBuffer byteBuffer)
RandomAccessFileManager(LoggerContext loggerContext, RandomAccessFile file, String fileName, OutputStream os, int bufferSize, String advertiseURI, Layout<? extends 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, String fileName, String pattern, OutputStream os, boolean append, boolean createOnDemand, long size, long initialTime, TriggeringPolicy triggeringPolicy, RolloverStrategy rolloverStrategy, String advertiseURI, Layout<? extends Serializable> layout, boolean writeHeader, ByteBuffer buffer)
Deprecated.RollingFileManager(LoggerContext loggerContext, String fileName, String pattern, OutputStream os, boolean append, boolean createOnDemand, long size, long initialTime, TriggeringPolicy triggeringPolicy, RolloverStrategy rolloverStrategy, String advertiseURI, Layout<? extends Serializable> layout, String filePermissions, String fileOwner, String fileGroup, boolean writeHeader, ByteBuffer buffer)
RollingRandomAccessFileManager(LoggerContext loggerContext, RandomAccessFile raf, String fileName, String pattern, OutputStream os, boolean append, boolean immediateFlush, int bufferSize, long size, long time, TriggeringPolicy policy, RolloverStrategy strategy, String advertiseURI, Layout<? extends Serializable> layout, boolean writeHeader)
Deprecated.RollingRandomAccessFileManager(LoggerContext loggerContext, RandomAccessFile raf, String fileName, String pattern, OutputStream os, boolean append, boolean immediateFlush, int bufferSize, long size, long initialTime, TriggeringPolicy policy, RolloverStrategy strategy, String advertiseURI, Layout<? extends Serializable> layout, String filePermissions, String fileOwner, 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(String name, URI configLocation)
Methods in org.apache.logging.log4j.core.async with parameters of type LoggerContext Modifier and Type Method Description protected Logger
AsyncLoggerContext. newInstance(LoggerContext ctx, String name, MessageFactory messageFactory)
Constructors in org.apache.logging.log4j.core.async with parameters of type LoggerContext Constructor Description AsyncLogger(LoggerContext context, String name, MessageFactory messageFactory, org.apache.logging.log4j.core.async.AsyncLoggerDisruptor loggerDisruptor)
Constructs anAsyncLogger
with 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 LoggerContext
AbstractConfiguration. getLoggerContext()
LoggerContext
Configuration. getLoggerContext()
Gets the logger context.static LoggerContext
Configurator. initialize(ClassLoader loader, Configuration configuration)
Initializes the Logging Context.static LoggerContext
Configurator. initialize(ClassLoader loader, Configuration configuration, Object externalContext)
Initializes the Logging Context.static LoggerContext
Configurator. initialize(ClassLoader loader, ConfigurationSource source)
Initializes the Logging Context.static LoggerContext
Configurator. initialize(ClassLoader loader, ConfigurationSource source, Object externalContext)
Initializes the Logging Context.static LoggerContext
Configurator. initialize(String name, ClassLoader loader, String configLocation)
Initializes the Logging Context.static LoggerContext
Configurator. initialize(String name, ClassLoader loader, String configLocation, Object externalContext)
Initializes the Logging Context.static LoggerContext
Configurator. initialize(String name, ClassLoader loader, URI configLocation)
Initializes the Logging Context.static LoggerContext
Configurator. initialize(String name, ClassLoader loader, URI configLocation, Object externalContext)
Initializes the Logging Context.static LoggerContext
Configurator. initialize(String name, ClassLoader loader, List<URI> configLocations, Object externalContext)
static LoggerContext
Configurator. initialize(String name, 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 Configuration
ConfigurationFactory. getConfiguration(LoggerContext loggerContext, String name, URI configLocation)
Returns the Configuration.Configuration
ConfigurationFactory. getConfiguration(LoggerContext loggerContext, String name, URI configLocation, ClassLoader loader)
Returns the Configuration obtained using a given ClassLoader.abstract Configuration
ConfigurationFactory. getConfiguration(LoggerContext loggerContext, ConfigurationSource source)
static void
Configurator. shutdown(LoggerContext ctx)
Shuts down the given logger context.static boolean
Configurator. shutdown(LoggerContext ctx, long timeout, 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
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.json
Methods in org.apache.logging.log4j.core.config.json with parameters of type LoggerContext Modifier and Type Method Description Configuration
JsonConfigurationFactory. 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 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 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(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext)
Loads the LoggerContext using the ContextSelector.LoggerContext
Log4jContextFactory. getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext, URI configLocation, String name)
Loads the LoggerContext using the ContextSelector.LoggerContext
Log4jContextFactory. getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext, List<URI> configLocations, String name)
LoggerContext
Log4jContextFactory. getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext, Configuration configuration)
Loads the LoggerContext using the ContextSelector using the provided ConfigurationLoggerContext
Log4jContextFactory. getContext(String fqcn, ClassLoader loader, 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 newLoggerConfigAdmin
with the specified LoggerContext and logger config.LoggerContextAdmin(LoggerContext loggerContext, 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.osgi
Methods in org.apache.logging.log4j.core.osgi that return LoggerContext Modifier and Type Method Description LoggerContext
BundleContextSelector. getContext(String fqcn, ClassLoader loader, boolean currentContext, 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 ConcurrentMap<String,AtomicReference<WeakReference<LoggerContext>>>
ClassLoaderContextSelector. CONTEXT_MAP
Methods in org.apache.logging.log4j.core.selector that return LoggerContext Modifier and Type Method Description protected LoggerContext
ClassLoaderContextSelector. createContext(String name, URI configLocation)
LoggerContext
BasicContextSelector. getContext(String fqcn, ClassLoader loader, boolean currentContext)
LoggerContext
BasicContextSelector. getContext(String fqcn, ClassLoader loader, boolean currentContext, URI configLocation)
LoggerContext
ClassLoaderContextSelector. getContext(String fqcn, ClassLoader loader, boolean currentContext)
LoggerContext
ClassLoaderContextSelector. getContext(String fqcn, ClassLoader loader, boolean currentContext, URI configLocation)
LoggerContext
ContextSelector. getContext(String fqcn, ClassLoader loader, boolean currentContext)
Returns the LoggerContext.LoggerContext
ContextSelector. getContext(String fqcn, ClassLoader loader, boolean currentContext, URI configLocation)
Returns the LoggerContext.LoggerContext
JndiContextSelector. getContext(String fqcn, ClassLoader loader, boolean currentContext)
LoggerContext
JndiContextSelector. getContext(String fqcn, ClassLoader loader, boolean currentContext, URI configLocation)
protected LoggerContext
ClassLoaderContextSelector. getDefault()
LoggerContext
BasicContextSelector. locateContext(String name, String configLocation)
LoggerContext
JndiContextSelector. locateContext(String name, Object externalContext, URI configLocation)
LoggerContext
NamedContextSelector. locateContext(String name, Object externalContext, URI configLocation)
Locate the LoggerContext with the specified name.LoggerContext
JndiContextSelector. removeContext(String name)
LoggerContext
NamedContextSelector. removeContext(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 List<LoggerContext>
BasicContextSelector. getLoggerContexts()
List<LoggerContext>
ClassLoaderContextSelector. getLoggerContexts()
List<LoggerContext>
ContextSelector. getLoggerContexts()
Returns a List of all the available LoggerContexts.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)
-