-
Notifications
You must be signed in to change notification settings - Fork 86
ImplementingLogFilter
k.otrebski edited this page Mar 17, 2015
·
2 revisions
The instructions provided describe how to add and implement your own log filter.
To write your filter, you need to:
- Implement the
pl.otros.logview.filter.LogFilter
interface, - Implement GUI for the filter (if necessary),
- Call the
LogFilterValueChangeListener.valueChanged()
method when a filter GUI option changes (for example,Level
), - Put your jar in the
./plugins/filters
directory.
public interface LogFilter {
public String getName();
public void init(Properties properties, LogDataTableModel logDataTableModel);
public boolean accept(LogData logData, int row, boolean marked);
public void setEnable(boolean enable);
public boolean isEnable();
public Component getGUI();
public void setValueChangeListener(LogFilterValueChangeListener listener);
}
- Introduction
- Installation
- Opening logs
- Log parsers
- Searching for events
- Marking events
- Notes
- Filters
- Log events message detail formatters and colorizers
- Jump to code - Integration with IDE
- Saving and loading log investigation
- HotKeys
- Batch processing
- DevelopingPlugins
- Developing on OtrosLogViewer
- Experimental features
- Limitations
- Video
- Used by
- DonateAndDonors