ImplementingAutomaticLogMarker - lluccia/otroslogviewer GitHub Wiki
Introduction
The instructions provided describe how to add and implement your log maker (highliter).
Details
To write your filter, you need to:
- Implement the
pl.otros.logview.markers.AutomaticMarkerinterface,
Note: The
toMarkmethod returnstruewhen the condition for theLogDatais fulfilled. ThegetMarkerGroupsmethod returnsgroupsin pop-up menu of the marked entry. Separate the groups with commas.
- Put your jar in the
./plugins/markersdirectory.
AutomaticMarker interface
public interface AutomaticMarker {
public boolean toMark(LogData data);
public String getName();
public String getDescripion();
public String[] getMarkerGroups();
public MarkerColors getColors();
}