Removed Log4J dependency and switched to SLF4J

This commit is contained in:
Omertron
2013-02-24 18:58:27 +00:00
parent 618406b459
commit 1b62ae2ff8
55 changed files with 3915 additions and 3946 deletions
@@ -36,14 +36,15 @@ import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.codec.binary.Base64;
import org.apache.log4j.Logger;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Web browser with simple cookies support
*/
public final class WebBrowser {
private static final Logger logger = Logger.getLogger(WebBrowser.class);
private static final Logger LOG = LoggerFactory.getLogger(WebBrowser.class);
private static Map<String, String> browserProperties = new HashMap<String, String>();
private static Map<String, Map<String, String>> cookies = new HashMap<String, Map<String, String>>();
private static String proxyHost = null;
@@ -134,7 +135,7 @@ public final class WebBrowser {
try {
content.close();
} catch (IOException ex) {
logger.debug("Failed to close connection: " + ex.getMessage());
LOG.debug("Failed to close connection: " + ex.getMessage());
}
}
}