com.cafesoft.core.log
Class Log4JAppenderFactory

java.lang.Object
  |
  +--com.cafesoft.core.log.Log4JAppenderFactory

public final class Log4JAppenderFactory
extends Object

Creates and initializes Log4j Appender objects that can then be used by any object that implements the Log4JLogger interface

The Appenders created by the factory and the initialization properties for each Appender are listed below.

Since:
7/12/02

Method Summary
 org.apache.log4j.Appender createAppender(Log4JAppenderType type, Properties properties)
          Create a Log4j Appender object This method will construct the specified type of Log4j appender and will create it.
static Log4JAppenderFactory getInstance()
          Get the single instance of the Log4JAppenderFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static final Log4JAppenderFactory getInstance()
Get the single instance of the Log4JAppenderFactory

Returns:
the single instance of the Log4JAppenderFactory

createAppender

public org.apache.log4j.Appender createAppender(Log4JAppenderType type,
                                                Properties properties)
                                         throws LoggerException
Create a Log4j Appender object

This method will construct the specified type of Log4j appender and will create it. Once created it will attempt to initialize the appender with the various properties supported by the Appender object. Once initialized the method returns the Appender

Parameters:
type - the type of Appender Object to create
properties - the initialization Properties object
Returns:
a created and initalized Log4j Appender object
Throws:
LoggerException - thrown if the type is not recognized or if an error occurs initializing an appender


Generated on 5:16:42 PM May 12, 2008, © 1996-2005 Cafésoft LLC. All rights reserved.