dkpro / dkpro-wsd

DKPro WSD: A Java framework for word sense disambiguation
https://dkpro.github.io/dkpro-wsd
20 stars 10 forks source link

Clean up logging code #69

Open logological opened 9 years ago

logological commented 9 years ago

Originally reported on Google Code with ID 70

This suggestion comes from Richard:

In uimaFIT-based components, always get the logger through getLogger() - do not store
the logger in a class variable:

getLogger().warn(...)
getLogger().info(...)

Do NOT use any logging framework directly, e.g. Log4J:

    private final static Logger logger = Logger.getLogger(SemCorXMLReader.class
            .getName());

Do not get the logger from the UIMA context and do not store it in a class variable.

If you need to use a logging framework outside an UIMA component, use the Apache Commons
Logging API because it can be easily redirected to any other logging backend.

Reported by tristan.miller@nothingisreal.com on 2015-01-09 13:56:09

logological commented 9 years ago

Reported by tristan.miller@nothingisreal.com on 2015-01-12 10:49:35