Search in sources :

Example 1 with LogCollector

use of jadx.gui.utils.logs.LogCollector 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));
        }
    });
}
Also used : LogCollector(jadx.gui.utils.logs.LogCollector) ILogListener(jadx.gui.utils.logs.ILogListener) Level(ch.qos.logback.classic.Level)

Aggregations

Level (ch.qos.logback.classic.Level)1 ILogListener (jadx.gui.utils.logs.ILogListener)1 LogCollector (jadx.gui.utils.logs.LogCollector)1