@Test public void testPullOutLogValuesSecond() { logger.debug("testPullOutLogValuesSecond: enter"); FileInputStream fstream; try { fstream = new FileInputStream(testFile1); final BufferedReader br = new BufferedReader(new InputStreamReader(fstream)); String strLine = br.readLine(); strLine = br.readLine(); final LogEntryObject retrunObject = ParseLog.pullOutLogValues(strLine, "INFO"); assertEquals(LogType.INFO, retrunObject.getLogType()); br.close(); } catch (final IOException e) { fail(); } logger.debug("testPullOutLogValuesSecond: exit"); }
public static LogEntryObject pullOutLogValues(final String line, final String type) { LogEntryObject logEntry = getDebugOutLogValue(line, type); if (logEntry == null) { logEntry = getRestApiOutLogValue(line, type); } if (logEntry == null) { logEntry = getInfoOutLogValue(line, type); } if (logEntry == null) { logEntry = getSevereOutLogValue(line, type); } if (logEntry == null) { logEntry = getWarnOutLogValue(line, type); } return logEntry; }
ParseLog { public static LogEntryObject pullOutLogValues(final String line, final String type) { LogEntryObject logEntry = getDebugOutLogValue(line, type); if (logEntry == null) { logEntry = getRestApiOutLogValue(line, type); } if (logEntry == null) { logEntry = getInfoOutLogValue(line, type); } if (logEntry == null) { logEntry = getSevereOutLogValue(line, type); } if (logEntry == null) { logEntry = getWarnOutLogValue(line, type); } return logEntry; } }
ParseLog { public static LogEntryObject pullOutLogValues(final String line, final String type) { LogEntryObject logEntry = getDebugOutLogValue(line, type); if (logEntry == null) { logEntry = getRestApiOutLogValue(line, type); } if (logEntry == null) { logEntry = getInfoOutLogValue(line, type); } if (logEntry == null) { logEntry = getSevereOutLogValue(line, type); } if (logEntry == null) { logEntry = getWarnOutLogValue(line, type); } return logEntry; }  }
ParseLog { public static LogEntryObject pullOutLogValues(final String line, final String type) { LogEntryObject logEntry = getDebugOutLogValue(line, type); if (logEntry == null) { logEntry = getRestApiOutLogValue(line, type); } if (logEntry == null) { logEntry = getInfoOutLogValue(line, type); } if (logEntry == null) { logEntry = getSevereOutLogValue(line, type); } if (logEntry == null) { logEntry = getWarnOutLogValue(line, type); } return logEntry; }  static void main(final String[] args); static int countLines(final String filename); static String pullLastLineRead(final File file, final String dataFileName); static LogEntryObject pullOutLogValues(final String line, final String type); static void process(final String line, final String type, final LogType logFile); static Date parseDate(final String dateline, final String pattern, final boolean singleSplit); static String parseRemoteSystem(final String line); static String[] getPaths(final String logPath); static Properties getPropertiesValue(final String fileName); static Connection getDbConnection(); }
ParseLog { public static LogEntryObject pullOutLogValues(final String line, final String type) { LogEntryObject logEntry = getDebugOutLogValue(line, type); if (logEntry == null) { logEntry = getRestApiOutLogValue(line, type); } if (logEntry == null) { logEntry = getInfoOutLogValue(line, type); } if (logEntry == null) { logEntry = getSevereOutLogValue(line, type); } if (logEntry == null) { logEntry = getWarnOutLogValue(line, type); } return logEntry; }  static void main(final String[] args); static int countLines(final String filename); static String pullLastLineRead(final File file, final String dataFileName); static LogEntryObject pullOutLogValues(final String line, final String type); static void process(final String line, final String type, final LogType logFile); static Date parseDate(final String dateline, final String pattern, final boolean singleSplit); static String parseRemoteSystem(final String line); static String[] getPaths(final String logPath); static Properties getPropertiesValue(final String fileName); static Connection getDbConnection();  }