use of jadx.gui.utils.logs.ILogListener in project jadx by skylot.
the class LogViewerDialog method registerLogListener.
private void registerLogListener() {
LogCollector logCollector = LogCollector.getInstance();
logCollector.resetListener();
textPane.setText("");
logCollector.registerListener(new ILogListener() {
@Override
public Level getFilterLevel() {
return level;
}
@Override
public void onAppend(final String logStr) {
SwingUtilities.invokeLater(() -> textPane.append(logStr));
}
});
}
Aggregations