mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
[CST-5303] fix logging
This commit is contained in:
@@ -22,7 +22,8 @@ import javax.el.MethodNotFoundException;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.http.HttpException;
|
||||
import org.apache.http.client.utils.URIBuilder;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.dspace.content.Item;
|
||||
import org.dspace.importer.external.datamodel.ImportRecord;
|
||||
import org.dspace.importer.external.datamodel.Query;
|
||||
@@ -51,7 +52,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
public class CiniiImportMetadataSourceServiceImpl extends AbstractImportMetadataSourceService<Element>
|
||||
implements QuerySource {
|
||||
|
||||
private static final Logger log = Logger.getLogger(CiniiImportMetadataSourceServiceImpl.class);
|
||||
private final static Logger log = LogManager.getLogger();
|
||||
|
||||
private static final String ENDPOINT_SEARCH = "https://ci.nii.ac.jp/naid/";
|
||||
|
||||
|
@@ -22,7 +22,8 @@ import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.http.HttpException;
|
||||
import org.apache.http.client.ClientProtocolException;
|
||||
import org.apache.http.client.utils.URIBuilder;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.dspace.content.Item;
|
||||
import org.dspace.importer.external.datamodel.ImportRecord;
|
||||
import org.dspace.importer.external.datamodel.Query;
|
||||
@@ -48,7 +49,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
public class PubmedEuropeMetadataSourceServiceImpl extends AbstractImportMetadataSourceService<Element>
|
||||
implements QuerySource {
|
||||
|
||||
private static final Logger log = Logger.getLogger(PubmedEuropeMetadataSourceServiceImpl.class);
|
||||
private final static Logger log = LogManager.getLogger();
|
||||
|
||||
private static final String ENDPOINT_SEARCH = "https://www.ebi.ac.uk/europepmc/webservices/rest/search";
|
||||
|
||||
|
@@ -24,7 +24,8 @@ import org.apache.http.client.methods.HttpGet;
|
||||
import org.apache.http.client.utils.URIBuilder;
|
||||
import org.apache.http.impl.client.CloseableHttpClient;
|
||||
import org.apache.http.impl.client.HttpClients;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.dspace.services.ConfigurationService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
@@ -35,7 +36,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
*/
|
||||
public class LiveImportClientImpl implements LiveImportClient {
|
||||
|
||||
private static final Logger log = Logger.getLogger(LiveImportClientImpl.class);
|
||||
private final static Logger log = LogManager.getLogger();
|
||||
|
||||
private CloseableHttpClient httpClient;
|
||||
|
||||
|
Reference in New Issue
Block a user