Skip to content

Commit

Permalink
Remove log4j to prevent conflict with beam-provided versions
Browse files Browse the repository at this point in the history
  • Loading branch information
qqndrew committed Jul 28, 2022
1 parent 30d7bd7 commit 5c010fe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
22 changes: 1 addition & 21 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.ohnlp.medtagger</groupId>
<artifactId>medtagger</artifactId>
<version>1.0.39</version>
<version>1.0.40</version>
<description>The MedTagger biomedical information extraction pipeline</description>


Expand Down Expand Up @@ -169,26 +169,6 @@
<artifactId>jwnl</artifactId>
<version>1.3.3</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.17.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.17.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.17.1</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.32</version>
</dependency>
<dependency>
<groupId>org.apache.opennlp</groupId>
<artifactId>opennlp-maxent</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@

package org.ohnlp.medtagger.ae;

import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.core.config.Configurator;
import org.apache.uima.UimaContext;
import org.apache.uima.analysis_component.JCasAnnotator_ImplBase;
import org.apache.uima.analysis_engine.AnalysisEngineProcessException;
Expand Down Expand Up @@ -61,7 +57,6 @@
public class AhoCorasickLookupAnnotator extends JCasAnnotator_ImplBase {

// LOG4J logger based on class name
private Logger logger = LogManager.getLogger(getClass().getName());
private boolean LONGEST = true;

// data structure that stores the TRIE
Expand All @@ -75,7 +70,6 @@ public class AhoCorasickLookupAnnotator extends JCasAnnotator_ImplBase {
public void initialize(UimaContext aContext)
throws ResourceInitializationException {
super.initialize(aContext);
Configurator.setLevel(logger.getName(), Level.DEBUG);

try {
lvg = new LvgLookup(aContext);
Expand Down

0 comments on commit 5c010fe

Please sign in to comment.