Project

General

Profile

« Previous | Next » 

Revision 8edfa814

Added by Andreas Müller almost 2 years ago

ref #10072 remove log4j12 from cdmlib-io except for LoggingConfigurer issue

View differences:

cdmlib-io/pom.xml
69 69
 		    <groupId>org.slf4j</groupId>
70 70
            <artifactId>slf4j-log4j12</artifactId>
71 71
 		  </exclusion>
72
 		  <exclusion>
73
            <groupId>log4j</groupId>
74
            <artifactId>log4j</artifactId>
75
          </exclusion>
72 76
 		</exclusions>
73 77
	</dependency>
74 78
    <dependency>
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/descriptive/owl/in/CharacterOwlImport.java
10 10

  
11 11
import java.util.Arrays;
12 12

  
13
import org.apache.logging.log4j.LogManager;
14
import org.apache.logging.log4j.Logger;
13 15
import org.springframework.stereotype.Component;
14 16

  
15 17
import com.hp.hpl.jena.rdf.model.ResIterator;
......
21 23
import eu.etaxonomy.cdm.model.description.Character;
22 24

  
23 25
/**
24
 *
25 26
 * @author pplitzner
26 27
 * @since Aug 28, 2019
27 28
 */
......
31 32

  
32 33
    private static final long serialVersionUID = -3659780404413458511L;
33 34

  
34
    static final org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(CharacterOwlImport.class);
35

  
35
    private final static Logger logger = LogManager.getLogger();
36 36

  
37 37
    @Override
38 38
    protected boolean doCheck(StructureTreeOwlImportState state) {
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/descriptive/owl/in/OwlImportUtil.java
15 15
import java.util.Set;
16 16
import java.util.UUID;
17 17

  
18
import org.apache.logging.log4j.LogManager;
19
import org.apache.logging.log4j.Logger;
20

  
18 21
import com.hp.hpl.jena.rdf.model.Model;
19 22
import com.hp.hpl.jena.rdf.model.Resource;
20 23
import com.hp.hpl.jena.rdf.model.Statement;
......
47 50
 */
48 51
public class OwlImportUtil {
49 52

  
50
    static final org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(OwlImportUtil.class);
53
    private final static Logger logger = LogManager.getLogger();
51 54

  
52 55
    private static void addFeatureProperties(Feature feature, Resource termResource, ICdmRepository repo, Model model, StructureTreeOwlImportState state){
53 56
        if(termResource.hasProperty(OwlUtil.propFeatureIsCategorical)){
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/descriptive/owl/in/StructureTreeOwlImport.java
10 10

  
11 11
import java.util.UUID;
12 12

  
13
import org.apache.logging.log4j.LogManager;
14
import org.apache.logging.log4j.Logger;
13 15
import org.springframework.stereotype.Component;
14 16

  
15 17
import com.hp.hpl.jena.rdf.model.Model;
......
38 40
public class StructureTreeOwlImport extends CdmImportBase<StructureTreeOwlImportConfigurator, StructureTreeOwlImportState> {
39 41

  
40 42
    private static final long serialVersionUID = -3659780404413458511L;
41
    private static final org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(StructureTreeOwlImport.class);
43

  
44
    private final static Logger logger = LogManager.getLogger();
42 45

  
43 46
    @Override
44 47
    protected boolean doCheck(StructureTreeOwlImportState state) {
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/descriptive/owl/in/TermVocabularyOwlImport.java
12 12
import java.util.Set;
13 13
import java.util.UUID;
14 14

  
15
import org.apache.logging.log4j.LogManager;
16
import org.apache.logging.log4j.Logger;
15 17
import org.springframework.stereotype.Component;
16 18

  
17 19
import com.hp.hpl.jena.rdf.model.Model;
......
37 39
        extends CdmImportBase<StructureTreeOwlImportConfigurator, StructureTreeOwlImportState> {
38 40

  
39 41
    private static final long serialVersionUID = -3659780404413458511L;
40
    private static final org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(TermVocabularyOwlImport.class);
42

  
43
    private final static Logger logger = LogManager.getLogger();
41 44

  
42 45
    @Override
43 46
    protected boolean doCheck(StructureTreeOwlImportState state) {

Also available in: Unified diff