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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FRAMEWORK_PROPERTY
protected static final String FRAMEWORK_PROPERTY
- See Also:
- Constant Field Values
failsafeFramework
protected LoggingFramework failsafeFramework
primaryFramework
protected LoggingFramework primaryFramework
LoggingManagerImpl
public LoggingManagerImpl()
- Creates a new
LoggingManagerImpl
instance.
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
Copyright © 2000-2004 SpiderLogic, a service of Wipfli Ullrich Bertelson LLP.