public static File findConfigInWorkingDirectory(){
  for (  final String suffix : SUFFIXES) {
    final File configFile=new File(System.getProperty("user.dir"),PREFIX + suffix);
    if (configFile.isFile()) {
      return configFile;
    }
  }
  return null;
}

public static File findConfigInWorkingDirectory ( ) { for ( final String suffix : SUFFIXES ) { final File configFile = new File ( System . getProperty ( "user.dir" ) , PREFIX + suffix ) ; if ( configFile . isFile ( ) ) { return configFile ; } } return null ; }
finds a log4j configuration file in the current working directory . the names of the files to look for are the same as those that log4j would look for on the classpath .
