Arch4J 1.1

org.arch4j.logging.log4j
Class Log4JLoggingFramework

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

public class Log4JLoggingFramework
extends Object
implements LoggingFramework, LoggingConstants

This class wraps the log4j logging facility.

Version:
1.0
Author:
Ross E. Greinke

Field Summary
static String LOG4J_FILE_NAME_PROPERTY
           
 
Fields inherited from interface org.arch4j.logging.LoggingConstants
DEBUG_LEVEL, ERROR_LEVEL, INFO_LEVEL, LOGGING_DOMAIN, WARNING_LEVEL
 
Constructor Summary
Log4JLoggingFramework()
          Creates a new Log4JLoggingFramework instance and gives it a default configuration.
 
Method Summary
 void configure()
          Configure the logging framework.
 LoggingCategory getCategory(String name)
          Retrieve a logging category with name name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG4J_FILE_NAME_PROPERTY

public static final String LOG4J_FILE_NAME_PROPERTY
See Also:
Constant Field Values
Constructor Detail

Log4JLoggingFramework

public Log4JLoggingFramework()
Creates a new Log4JLoggingFramework instance and gives it a default configuration.

Method Detail

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.