Esempio n. 1
0
 public static void main(String args[]) {
   File file = new File(Platform.getRoot() + "/logs/alert.log");
   AlertLogReader alertlogreader = new AlertLogReader(file);
   HashMap hashmap = new HashMap();
   hashmap.put("alert-type", "Email");
   ArrayList array = alertlogreader.process(hashmap, null, null, null);
   System.out.println("***************************************************");
   for (int i = 0; i < array.size(); i++) {
     HashMap hashmap1 = (HashMap) array.get(i);
     System.out.println(
         TextUtils.dateToString((Date) hashmap1.get("date"))
             + "   "
             + hashmap1.get("alert-message"));
   }
 }