Blame view

src/main/java/pl/labno/bernard/htmlunified/AlertLogger.java 456 Bytes
bernard authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
package pl.labno.bernard.htmlunified;

import com.gargoylesoftware.htmlunit.AlertHandler;
import com.gargoylesoftware.htmlunit.Page;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class AlertLogger implements AlertHandler {

    private static final Log LOG = LogFactory.getLog(AlertLogger.class);

    public void handleAlert(Page page, String message) {
        LOG.info("Alert message:" + message);
    }
}