question: 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 ; }
target:  Check if a LogMessage is contains in a log file