public static void main(final String[] args) throws Exception {
    if (args.length < 1) {
      System.err.println("** Missing log file name");
      ExitCode.FATAL.doSystemExit();
    }

    String logFileName = args[0];
    try (FileReader fileReader = new FileReader(logFileName);
        BufferedReader br = new BufferedReader(fileReader)) {
      LogFileParser parser = new LogFileParser(logFileName, br, false, false);
      PrintWriter pw = new PrintWriter(System.out);
      while (parser.hasMoreEntries()) {
        LogEntry entry = parser.getNextEntry();
        entry.writeTo(pw);
      }
    }
  }
Main program that simply parses a log file and prints out the entries. It is used for testing
purposes.
geode-core/src/main/java/org/apache/geode/internal/logging/LogFileParser.java