Arch4J 1.1

org.arch4j.logging
Class LoggingManagerImpl

java.lang.Object
  |
  +--org.arch4j.logging.LoggingManagerImpl
All Implemented Interfaces:
LoggingConstants, LoggingFramework, LoggingManager

public class LoggingManagerImpl
extends Object
implements LoggingManager, LoggingConstants

This class implements the LoggingManager interface, providing access to an underlying logging framework. The framework to use comes from a property file setting. It also uses a failsafe logging framework if a framework cannot be found.

Version:
$Revision: 1.4 $
Author:
Ross E. Greinke

Field Summary
protected  LoggingFramework failsafeFramework
           
protected static String FRAMEWORK_PROPERTY
           
protected  LoggingFramework primaryFramework
           
 
Fields inherited from interface org.arch4j.logging.LoggingConstants
DEBUG_LEVEL, ERROR_LEVEL, INFO_LEVEL, LOGGING_DOMAIN, WARNING_LEVEL
 
Constructor Summary
LoggingManagerImpl()
          Creates a new LoggingManagerImpl instance.
 
Method Summary
 void configure()
          Configure the logging framework.
protected  LoggingFramework createFramework(Class frameworkClass)
           
 LoggingCategory getCategory(String name)
          Retrieve a logging category with name name.
 LoggingFramework getFailsafeFramework()
           
protected  Class getFrameworkClass()
           
 LoggingFramework getPrimaryFramework()
           
protected  void initialize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FRAMEWORK_PROPERTY

protected static final String FRAMEWORK_PROPERTY
See Also:
Constant Field Values

failsafeFramework

protected LoggingFramework failsafeFramework

primaryFramework

protected LoggingFramework primaryFramework
Constructor Detail

LoggingManagerImpl

public LoggingManagerImpl()
Creates a new LoggingManagerImpl instance.

Method Detail

initialize

protected void initialize()

getFrameworkClass

protected Class getFrameworkClass()
                           throws ClassNotFoundException
ClassNotFoundException

createFramework

protected LoggingFramework createFramework(Class frameworkClass)
                                    throws InstantiationException,
                                           IllegalAccessException
InstantiationException
IllegalAccessException

getPrimaryFramework

public LoggingFramework getPrimaryFramework()
Returns:
The primary logging framework in use.

getFailsafeFramework

public LoggingFramework getFailsafeFramework()
Returns:
The failsafe logging framework, if needed.

getCategory

public LoggingCategory getCategory(String name)
Retrieve a logging category with name name.

Specified by:
getCategory in interface LoggingFramework
Parameters:
name - The name of the logging category to retrieve.
Returns:
The logging category to be used for logging.

configure

public void configure()
Configure the logging framework.

Specified by:
configure in interface LoggingFramework

Arch4J 1.1

Copyright © 2000-2004 SpiderLogic, a service of Wipfli Ullrich Bertelson LLP.