saad120 / dkpro-wsd

Automatically exported from code.google.com/p/dkpro-wsd
0 stars 0 forks source link

Clean up logging code #70

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by tristan.miller@nothingisreal.com on 9 Jan 2015 at 1:56

GoogleCodeExporter commented 9 years ago

Original comment by tristan.miller@nothingisreal.com on 12 Jan 2015 at 10:49