org.apache.logging.log4j.core.selector
Interface ContextSelector

All Known Subinterfaces:
NamedContextSelector
All Known Implementing Classes:
BasicContextSelector, ClassLoaderContextSelector, JNDIContextSelector

public interface ContextSelector

Interface used to locate a LoggerContext.


Method Summary
 LoggerContext getContext(String fqcn, ClassLoader loader, boolean currentContext)
          Return the LoggerContext.
 List<LoggerContext> getLoggerContexts()
          Return a List of all the available LoggerContexts.
 

Method Detail

getContext

LoggerContext getContext(String fqcn,
                         ClassLoader loader,
                         boolean currentContext)
Return the LoggerContext.

Parameters:
fqcn - The fully qualified class name of the caller.
loader - ClassLoader to use or null.
currentContext - If true returns the current Context, if false returns the Context appropriate for the caller if a more appropriate Context can be determined.
Returns:
The LoggerContext.

getLoggerContexts

List<LoggerContext> getLoggerContexts()
Return a List of all the available LoggerContexts.

Returns:
The List of LoggerContexts.


Copyright © 1999-2012 Apache Software Foundation. All Rights Reserved.