public static String[][] read(String logname,String logtype,String timeStamp,LogQuery logQuery,Object userCrdential) throws IOException, NoSuchFieldException, IllegalArgumentException, RuntimeException, Exception {
  String mainFileName=new String();
  setLoggerName(logname,logtype);
  mainFileName=loggerName;
  if (timeStamp != null) {
    if (mainFileName.length() == 0) {
      return null;
    }
    mainFileName+="." + timeStamp;
  }
  queryResult=read(mainFileName,logQuery,userCrdential);
  return queryResult;
}

public static String [ ] [ ] read ( String logname , String logtype , String timeStamp , LogQuery logQuery , Object userCrdential ) throws IOException , NoSuchFieldException , IllegalArgumentException , RuntimeException , Exception { String mainFileName = new String ( ) ; setLoggerName ( logname , logtype ) ; mainFileName = loggerName ; if ( timeStamp != null ) { if ( mainFileName . length ( ) == 0 ) { return null ; } mainFileName += "." + timeStamp ; } queryResult = read ( mainFileName , logQuery , userCrdential ) ; return queryResult ; }
reads a log file provided it has the required authorization . it reads all records but returns the maximum number of most recent records ( if asked ) those meet the caller ' s requirement as specified through query .
