Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up logging code #69

Open
logological opened this issue Jun 24, 2015 · 1 comment
Open

Clean up logging code #69

logological opened this issue Jun 24, 2015 · 1 comment

Comments

@logological
Copy link
Member

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
Copy link
Member Author

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant