You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@opennlp.apache.org by "reckart (via GitHub)" <gi...@apache.org> on 2023/04/20 20:34:40 UTC

[GitHub] [opennlp-sandbox] reckart commented on a diff in pull request #101: OPENNLP-1454 Convert System.out statements to debug logging statements in 'opennlp-similarity'

reckart commented on code in PR #101:
URL: https://github.com/apache/opennlp-sandbox/pull/101#discussion_r1173064041


##########
opennlp-similarity/src/test/java/opennlp/tools/textsimilarity/chunker2matcher/ParserChunker2MatcherProcessorTest.java:
##########
@@ -26,12 +26,17 @@
 import opennlp.tools.textsimilarity.ParseTreeChunk;
 import opennlp.tools.textsimilarity.ParseTreeChunkListScorer;
 import opennlp.tools.textsimilarity.TextSimilarityBagOfWords;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertNotNull;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 
 class ParserChunker2MatcherProcessorTest {
+
+  private static final Logger logger =

Review Comment:
   You can use `LoggerFactory.getLogger(MethodHandles.lookup().lookupClass())` as a static replacement for `LoggerFactory.getLogger(getClass())`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@opennlp.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org