private boolean checkLogMessageExist(String fileName,String patternToSearch) throws IOException {
  BufferedReader br=new BufferedReader(new FileReader(debugDirectory + File.separator + fileName));
  String sCurrentLine;
  while ((sCurrentLine=br.readLine()) != null) {
    if (sCurrentLine.contains(patternToSearch)) {
      return true;
    }
  }
  return false;
}

private boolean checkLogMessageExist ( String fileName , String patternToSearch ) throws IOException { BufferedReader br = new BufferedReader ( new FileReader ( debugDirectory + File . separator + fileName ) ) ; String sCurrentLine ; while ( ( sCurrentLine = br . readLine ( ) ) != null ) { if ( sCurrentLine . contains ( patternToSearch ) ) { return true ; } } return false ; }
check if a logmessage is contains in a log file
