org.apache.poi.util
Class POILogFactory

java.lang.Object
  |
  +--org.apache.poi.util.POILogFactory
Direct Known Subclasses:
HSSFLog

public class POILogFactory
extends java.lang.Object

Provides logging without clients having to mess with configuration/initialization.

Author:
Andrew C. Oliver (acoliver at apache dot org), Marc Johnson (mjohnson at apache dot org)

Constructor Summary
POILogFactory(java.lang.String logFile, java.lang.String logPathProperty)
          construct a POILogFactory.
 
Method Summary
 POILogger getLogger(java.lang.Class theclass)
          Get a logger, based on a class name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

POILogFactory

public POILogFactory(java.lang.String logFile,
                     java.lang.String logPathProperty)
construct a POILogFactory.
Parameters:
logFile - the name of the file that contains the properties governing the logs; should not be null or empty
logPathProperty - the name of the system property that defines the path of logFile; can not be null or empty
Method Detail

getLogger

public POILogger getLogger(java.lang.Class theclass)
Get a logger, based on a class name
Parameters:
theclass - the class whose name defines the log
Returns:
a POILogger for the specified class


Copyright © 2001-2002 JAKARTA POI project. All Rights Reserved.