Android Open Source - SimpleLogViewer Log Parser






From Project

Back to project page SimpleLogViewer.

License

The source code is released under:

Apache License

If you think the Android project SimpleLogViewer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.emelabs.logviewer;
//  w  w  w  . j  a  v a2  s .c  o  m
import java.io.File;
import java.util.List;

public interface LogParser {
  
  /**
   * Return code for priority based on priority key
   * 
   * @param priorityKey
   * @return code for priority based on priority key
   */
  public int getPriority(String priorityKey);
  
  
  /**
   * Return code for priority based on priority name
   * 
   * @param priorityName
   * @return code for priority based on priority name
   */
  public int getPriorityByName(String priorityName);
  
  
  /**
   * @param priorityName
   * @return <code>true</code> if priority is an Exception
   */
  public boolean isException(String priorityName);
  
  
  /**
   * Parse log file and build a list with each log line as item
   * 
   * @param file Log file will be parse
   * @return List items 
   */
  public List<Item> parseFile(File file);
}




Java Source Code List

com.emelabs.logviewer.Item.java
com.emelabs.logviewer.LogAdapter.java
com.emelabs.logviewer.LogParserImp.java
com.emelabs.logviewer.LogParser.java
com.emelabs.logviewer.MainActivity.java