dkpro-wsd icon indicating copy to clipboard operation
dkpro-wsd copied to clipboard

Clean up logging code

Open logological opened this issue 10 years ago • 1 comments

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 [email protected] on 2015-01-09 13:56:09

logological avatar Jun 24 '15 15:06 logological

Reported by [email protected] on 2015-01-12 10:49:35

  • Labels added: Priority-Low
  • Labels removed: Priority-Medium

logological avatar Jun 24 '15 15:06 logological