com.rhi.architecture.logging
Class Log4JFactory

java.lang.Object
  extended bycom.rhi.architecture.logging.LogFactory
      extended bycom.rhi.architecture.logging.BasicLog4JFactory
          extended bycom.rhi.architecture.logging.Log4JFactory
All Implemented Interfaces:
Resource

public final class Log4JFactory
extends BasicLog4JFactory

Log4J Factory

Version:
1.0
Author:
Pete McKinstry

Field Summary
static java.lang.String FILE_APPENDER
          file appender config key - required since the file appender is added programmatically.
static java.lang.String LOGFILE_PATH
          path where logfile should be written.
 
Fields inherited from class com.rhi.architecture.logging.BasicLog4JFactory
LOG4J_DEFAULTCATEGORY, LOG4J_PROPERTYFILE
 
Fields inherited from class com.rhi.architecture.logging.LogFactory
KEY
 
Constructor Summary
Log4JFactory()
          default constructor - protected
 
Method Summary
 void init(java.util.Properties p)
          Perform whatever initialization is required of the resource.
protected  boolean isLoaded()
          Returns the loaded flag to ensure the logfactory isn't double initialized.
 
Methods inherited from class com.rhi.architecture.logging.BasicLog4JFactory
close, getDefaultLogger, getLogger, getProperties
 
Methods inherited from class com.rhi.architecture.logging.LogFactory
getFactory, getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_APPENDER

public static final java.lang.String FILE_APPENDER
file appender config key - required since the file appender is added programmatically. (because path is not known)

See Also:
Constant Field Values

LOGFILE_PATH

public static final java.lang.String LOGFILE_PATH
path where logfile should be written.

See Also:
Constant Field Values
Constructor Detail

Log4JFactory

public Log4JFactory()
default constructor - protected

Since:
1.0
Method Detail

init

public void init(java.util.Properties p)
          throws InitializationException
Perform whatever initialization is required of the resource. This method should only be called once per application instance.

Specified by:
init in interface Resource
Overrides:
init in class BasicLog4JFactory
Parameters:
p -
Throws:
InitializationException
Since:
1.2
See Also:
Resource.init(Properties)

isLoaded

protected boolean isLoaded()
Returns the loaded flag to ensure the logfactory isn't double initialized.

Overrides:
isLoaded in class BasicLog4JFactory
Returns:
boolean


Copyright © 2002-2004 Robert Half International. All Rights Reserved.