Skip to content

Clean up logging code #69

@logological

Description

@logological

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions