All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jmeterplugins.repository.logging.LoggerPanelWrapping Maven / Gradle / Ivy

There is a newer version: 1.10
Show newest version
package org.jmeterplugins.repository.logging;

import org.apache.jmeter.gui.LoggerPanel;
import org.apache.log.LogEvent;
import org.jmeterplugins.repository.PluginManager;
import org.jmeterplugins.repository.plugins.PluginSuggester;

public class LoggerPanelWrapping extends LoggerPanel {

    protected PluginSuggester suggester;

    public LoggerPanelWrapping(PluginManager mgr) {
        super();
        this.suggester = new PluginSuggester(mgr);
    }

    @Override
    public void processEvent(LogEvent logEvent) {
        if (logEvent.getCategory().contains("SaveService")) {
            suggester.checkAndSuggest(logEvent.getMessage());
        }
    }

    public PluginSuggester getSuggester() {
        return suggester;
    }

    public void setSuggester(PluginSuggester suggester) {
        this.suggester = suggester;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy