EAC Toolkit 3.2.1

com.endeca.soleng.eac.toolkit.logging
Class RelativePathFileHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by java.util.logging.StreamHandler
          extended by java.util.logging.FileHandler
              extended by com.endeca.soleng.eac.toolkit.logging.RelativePathFileHandler

public class RelativePathFileHandler
extends java.util.logging.FileHandler

This class extends FileHandler, allowing the use of a relative path for logging. Specifically, this class looks for an "endeca.project.dir" system property or, if none is found, a "ENDECA_PROJECT_DIR" environment variable and uses the retrieved value as the base directory for logging (creating log files under that directory). If neither the system property not the environment variable is set, the relative path defaults to the current working directory.

Author:
brandall

Constructor Summary
RelativePathFileHandler()
           
 
Method Summary
 
Methods inherited from class java.util.logging.FileHandler
close, publish
 
Methods inherited from class java.util.logging.StreamHandler
flush, isLoggable, setEncoding, setOutputStream
 
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelativePathFileHandler

public RelativePathFileHandler()
                        throws java.io.IOException
Throws:
java.io.IOException

EAC Toolkit 3.2.1

Copyright © 2011 Endeca Technologies, Inc. All Rights Reserved.
@VERSION
PRODUCT: EAC Toolkit (eacToolkit)
VERSION: 3.2.1
BUILD:   NONE
ARCH_OS: n/a
DATE:    2011-11-10T16:21:05-0500