org.apache.logging.log4j.core.config
Class Configurator

java.lang.Object
  extended by org.apache.logging.log4j.core.config.Configurator

public final class Configurator
extends Object

Class that can be used to initialize and configure the Logging system.


Method Summary
static LoggerContext initialize(String name, ClassLoader loader, String configLocation)
          Initialize the Logging Context.
static LoggerContext initialize(String name, ClassLoader loader, URI configLocation)
          Initialize the Logging Context.
static void shutdown(LoggerContext ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

initialize

public static LoggerContext initialize(String name,
                                       ClassLoader loader,
                                       String configLocation)
Initialize the Logging Context.

Parameters:
name - The Context name.
loader - The ClassLoader for the Context (or null).
configLocation - The configuration for the logging context.
Returns:
The LoggerContext.

initialize

public static LoggerContext initialize(String name,
                                       ClassLoader loader,
                                       URI configLocation)
Initialize the Logging Context.

Parameters:
name - The Context name.
loader - The ClassLoader for the Context (or null).
configLocation - The configuration for the logging context.
Returns:
The LoggerContext.

shutdown

public static void shutdown(LoggerContext ctx)


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