com.partnersoft.platform.j2se
Class Log4jLogFactory

java.lang.Object
  extended by com.partnersoft.core.LogFactory
      extended by com.partnersoft.platform.j2se.Log4jLogFactory

public class Log4jLogFactory
extends LogFactory

An implementation of LogFactory that uses the Apache log4j framework. This is the default implementation of logging for the Partner system. You do not need to use this directly; it is set up for you by the J2seBootstrap class.

Copy Copyright 2003-2006 Partner Software, Inc.

Version:
$Id: Log4jLogFactory.java 2474 2010-03-13 14:28:43Z paul $
Author:
Paul Reavis

Constructor Summary
Log4jLogFactory()
          Creates the log factory, configuring log4j by reading either ReadOnlyLogging.properties or Logging.properties from the first directory it is found in from the following list: config/seat/system/logging/ config/site/system/logging/ config/customer/system/logging/ config/provider/system/logging/ system/logging/ This allows customization of logging for a specific installation or group of installations.
 
Method Summary
 Log instanceFor(java.lang.Class clazz)
          Return a Log object for the given class.
 Log instanceFor(java.lang.String name)
          Returns the correct Log instance for the given name.
 
Methods inherited from class com.partnersoft.core.LogFactory
getFactory, logFor, logFor, setFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log4jLogFactory

public Log4jLogFactory()
Creates the log factory, configuring log4j by reading either ReadOnlyLogging.properties or Logging.properties from the first directory it is found in from the following list: This allows customization of logging for a specific installation or group of installations. Use the provided one in system/logging/ as an example when creating a custom one.

Method Detail

instanceFor

public Log instanceFor(java.lang.Class clazz)
Description copied from class: LogFactory
Return a Log object for the given class. By default just calls instanceFor(class.getName());

Overrides:
instanceFor in class LogFactory

instanceFor

public Log instanceFor(java.lang.String name)
Description copied from class: LogFactory
Returns the correct Log instance for the given name.

Specified by:
instanceFor in class LogFactory