Skip to content

Commit

Permalink
replace with log4j
Browse files Browse the repository at this point in the history
  • Loading branch information
marevol committed Dec 28, 2024
1 parent cf267ca commit 6b81d6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@

import org.apache.commons.lang3.StringUtils;
import org.apache.http.auth.UsernamePasswordCredentials;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.codelibs.core.exception.IORuntimeException;
import org.codelibs.core.lang.StringUtil;
import org.codelibs.core.lang.ThreadUtil;
Expand All @@ -53,8 +55,6 @@
import org.codelibs.fess.crawler.filter.UrlFilter;
import org.codelibs.fess.crawler.helper.MimeTypeHelper;
import org.codelibs.fess.crawler.util.CrawlingParameterUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.microsoft.playwright.Browser;
import com.microsoft.playwright.Browser.NewContextOptions;
Expand All @@ -77,7 +77,7 @@
*/
public class PlaywrightClient extends AbstractCrawlerClient {

private static final Logger logger = LoggerFactory.getLogger(PlaywrightClient.class);
private static final Logger logger = LogManager.getLogger(PlaywrightClient.class);

private static final Object INITIALIZATION_LOCK = new Object();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.http.auth.UsernamePasswordCredentials;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.codelibs.fess.crawler.exception.CrawlerSystemException;
import org.mortbay.jetty.Server;
import org.mortbay.jetty.bio.SocketConnector;
import org.mortbay.jetty.servlet.ServletHandler;
import org.mortbay.jetty.servlet.ServletHolder;
import org.mortbay.servlet.ProxyServlet;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* A sample single-threaded proxy server (based on Jetty) for testing purposes.
Expand All @@ -45,7 +45,7 @@ public enum ProxyAccessStatus {
NOT_ACCESSED, PROMPTED_FOR_CREDENTIALS, ACCESS_GRANTED, ACCESS_DENIED
}

private static final Logger logger = LoggerFactory.getLogger(CrawlerWebProxy.class);
private static final Logger logger = LogManager.getLogger(CrawlerWebProxy.class);
public static final String PROXY_AUTHENTICATE = "proxy-authenticate";
public static final String PROXY_AUTHORIZATION = "proxy-authorization";

Expand Down

0 comments on commit 6b81d6c

Please sign in to comment.