LoggerContext objects.
| Modifier and Type | Method and Description |
|---|---|
| public LoggerContext | Returns: The LoggerContext.The fully qualified class name of the caller. fqcn, ClassLoader The ClassLoader to use or null. loader, Object An external context (such as a ServletContext) to be associated with the LoggerContext. externalContext, boolean If true returns the current Context, if false returns the Context appropriate
for the caller if a more appropriate Context can be determined. currentContext)Creates a |
| public LoggerContext | Returns: The LoggerContext.The fully qualified class name of the caller. fqcn, ClassLoader The ClassLoader to use or null. loader, Object An external context (such as a ServletContext) to be associated with the LoggerContext. externalContext, boolean If true returns the current Context, if false returns the Context appropriate
for the caller if a more appropriate Context can be determined. currentContext, URI The location of the configuration for the LoggerContext. configLocation, String The name of the context or null. name)Creates a |
| public default boolean | Returns: true if a LoggerContext has been installed, false otherwise.The fully qualified class name of the caller. fqcn, ClassLoader The ClassLoader to use or null. loader, boolean If true returns the current Context, if false returns the Context appropriate
for the caller if a more appropriate Context can be determined. currentContext)Checks to see if a LoggerContext is installed. |
| public default boolean | isClassLoaderDependent()
Determines whether or not this factory and perhaps the underlying ContextSelector behavior depend on the callers classloader. |
| public void | |
| public default void | shutdown(String
The fully qualified class name of the caller. fqcn, ClassLoader The ClassLoader to use or null. loader, boolean If true shuts down the current Context, if false shuts down the Context appropriate
for the caller if a more appropriate Context can be determined. currentContext, boolean if true all LoggerContexts that can be located will be shutdown. allContexts)Shuts down the LoggerContext. |
| getContext | back to summary |
|---|---|
| public LoggerContext getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext) Creates a
| |
| getContext | back to summary |
|---|---|
| public LoggerContext getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext, URI configLocation, String name) Creates a
| |
| hasContext | back to summary |
|---|---|
| public default boolean hasContext(String fqcn, ClassLoader loader, boolean currentContext) Checks to see if a LoggerContext is installed. The default implementation returns false.
| |
| isClassLoaderDependent | back to summary |
|---|---|
| public default boolean isClassLoaderDependent() Determines whether or not this factory and perhaps the underlying
ContextSelector behavior depend on the callers classloader.
This method should be overridden by implementations, however a default method is provided which always
returns
| |
| removeContext | back to summary |
|---|---|
| public void removeContext(LoggerContext context) Removes knowledge of a LoggerContext.
| |
| shutdown | back to summary |
|---|---|
| public default void shutdown(String fqcn, ClassLoader loader, boolean currentContext, boolean allContexts) Shuts down the LoggerContext.
| |