Uses of Class
org.apache.logging.log4j.core.LoggerContext
-
-
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(ClassLoader loader, boolean currentContext, 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 context, String name, MessageFactory messageFactory)Callback to create a new logger.Constructors in org.apache.logging.log4j.core with parameters of type LoggerContext Constructor Description Logger(LoggerContext context, String name, MessageFactory messageFactory)Constructs an instance using the givenLoggerContext, logger name, andMessageFactory.Logger(LoggerContext context, String name, MessageFactory messageFactory, FlowMessageFactory flowMessageFactory)The canonical 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, 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 classAsyncLoggerContextLoggerContextthat createsAsyncLoggerobjects.Methods in org.apache.logging.log4j.core.async that return LoggerContext Modifier and Type Method Description protected LoggerContextAsyncLoggerContextSelector. createContext(String name, URI configLocation)LoggerContextBasicAsyncLoggerContextSelector. getContext(String fqcn, ClassLoader loader, boolean currentContext)LoggerContextBasicAsyncLoggerContextSelector. getContext(String fqcn, ClassLoader loader, boolean currentContext, URI configLocation)Methods in org.apache.logging.log4j.core.async that return types with arguments of type LoggerContext Modifier and Type Method Description List<LoggerContext>BasicAsyncLoggerContextSelector. getLoggerContexts()Methods in org.apache.logging.log4j.core.async with parameters of type LoggerContext Modifier and Type Method Description protected LoggerAsyncLoggerContext. newInstance(LoggerContext ctx, String name, MessageFactory messageFactory)voidBasicAsyncLoggerContextSelector. removeContext(LoggerContext context) -
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(ClassLoader loader, Configuration configuration)Initializes the Logging Context.static LoggerContextConfigurator. initialize(ClassLoader loader, Configuration configuration, Object externalContext)Initializes the Logging Context.static LoggerContextConfigurator. initialize(ClassLoader loader, ConfigurationSource source)Initializes the Logging Context.static LoggerContextConfigurator. initialize(ClassLoader loader, ConfigurationSource source, Object externalContext)Initializes the Logging Context.static LoggerContextConfigurator. initialize(String name, ClassLoader loader, String configLocation)Initializes the Logging Context.static LoggerContextConfigurator. initialize(String name, ClassLoader loader, String configLocation, Object externalContext)Initializes the Logging Context.static LoggerContextConfigurator. initialize(String name, ClassLoader loader, URI configLocation)Initializes the Logging Context.static LoggerContextConfigurator. initialize(String name, ClassLoader loader, URI configLocation, Object externalContext)Initializes the Logging Context.static LoggerContextConfigurator. initialize(String name, ClassLoader loader, URI configLocation, Map.Entry<String,Object> entry)Initializes the Logging Context.static LoggerContextConfigurator. initialize(String name, ClassLoader loader, List<URI> configLocations, Object externalContext)static LoggerContextConfigurator. initialize(String name, 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, String name, URI configLocation)Returns the Configuration.ConfigurationConfigurationFactory. getConfiguration(LoggerContext loggerContext, String name, URI configLocation, ClassLoader loader)Returns the Configuration obtained using a given ClassLoader.ConfigurationConfigurationFactory. getConfiguration(LoggerContext loggerContext, String name, List<URI> configLocations){@return a {@link Configuration} created using provided configuration location {@link URI}s}abstract ConfigurationConfigurationFactory. getConfiguration(LoggerContext loggerContext, ConfigurationSource source)voidLoggerContextAware. setLoggerContext(LoggerContext loggerContext)Injects the current LoggerContext into this object.static voidConfigurator. shutdown(LoggerContext ctx)Shuts down the given logger context.static booleanConfigurator. 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 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 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(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext)Loads the LoggerContext using the ContextSelector.LoggerContextLog4jContextFactory. getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext, URI configLocation, String name)Loads the LoggerContext using the ContextSelector.LoggerContextLog4jContextFactory. getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext, List<URI> configLocations, String name)LoggerContextLog4jContextFactory. getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext, Configuration configuration)Loads the LoggerContext using the ContextSelector using the provided ConfigurationLoggerContextLog4jContextFactory. getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext, ConfigurationSource source)Loads the LoggerContext using the ContextSelector.LoggerContextLog4jContextFactory. getContext(String fqcn, ClassLoader loader, Map.Entry<String,Object> entry, boolean currentContext, URI configLocation, String name) -
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, Executor executor)Constructs a newLoggerContextAdminwith theExecutorto be used for sendingNotifications 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 WeakReference<LoggerContext>Interpolator. loggerContextMethods in org.apache.logging.log4j.core.lookup with parameters of type LoggerContext Modifier and Type Method Description voidInterpolator. 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, 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 LoggerContextBundleContextSelector. 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_MAPMethods in org.apache.logging.log4j.core.selector that return LoggerContext Modifier and Type Method Description protected LoggerContextClassLoaderContextSelector. createContext(String name, URI configLocation)LoggerContextBasicContextSelector. getContext(String fqcn, ClassLoader loader, boolean currentContext)LoggerContextBasicContextSelector. getContext(String fqcn, ClassLoader loader, boolean currentContext, URI configLocation)LoggerContextClassLoaderContextSelector. getContext(String fqcn, ClassLoader loader, boolean currentContext)LoggerContextClassLoaderContextSelector. getContext(String fqcn, ClassLoader loader, boolean currentContext, URI configLocation)LoggerContextClassLoaderContextSelector. getContext(String fqcn, ClassLoader loader, Map.Entry<String,Object> entry, boolean currentContext, URI configLocation)LoggerContextContextSelector. getContext(String fqcn, ClassLoader loader, boolean currentContext)Returns the LoggerContext.LoggerContextContextSelector. getContext(String fqcn, ClassLoader loader, boolean currentContext, URI configLocation)Returns the LoggerContext.default LoggerContextContextSelector. getContext(String fqcn, ClassLoader loader, Map.Entry<String,Object> entry, boolean currentContext)Returns the LoggerContext.default LoggerContextContextSelector. getContext(String fqcn, ClassLoader loader, Map.Entry<String,Object> entry, boolean currentContext, URI configLocation)Returns the LoggerContext.LoggerContextJndiContextSelector. getContext(String fqcn, ClassLoader loader, boolean currentContext)LoggerContextJndiContextSelector. getContext(String fqcn, ClassLoader loader, boolean currentContext, URI configLocation)protected LoggerContextClassLoaderContextSelector. getDefault()LoggerContextBasicContextSelector. locateContext(String name, String configLocation)LoggerContextJndiContextSelector. locateContext(String name, Object externalContext, URI configLocation)LoggerContextNamedContextSelector. locateContext(String name, Object externalContext, URI configLocation)Locate the LoggerContext with the specified name.LoggerContextJndiContextSelector. removeContext(String name)LoggerContextNamedContextSelector. 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 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(jakarta.servlet.ServletContext servletContext)Finds the mainLoggerContextconfigured for the given ServletContext.static LoggerContextWebLoggerContextUtils. getWebLoggerContext(jakarta.servlet.ServletContext servletContext)Finds the mainLoggerContextconfigured for the given ServletContext.Methods in org.apache.logging.log4j.web with parameters of type LoggerContext Modifier and Type Method Description static voidWebLoggerContextUtils. setServletContext(LoggerContext lc, jakarta.servlet.ServletContext servletContext)
-