Skip to content

[all] Use slf4j #896

@adangel

Description

@adangel

Part of #2524

Rationale: In order to make it easier to integrate PMD into other tools, it might be better to use the de-facto-standard slf4j.
We could then provide some basic simplelogger configuration in our binary distribution, but integrations have full freedom on which logging framework they want to use.

This would at slf4j-api as an additional compile-time dependency and maybe slf4j-impl as runtime dependency in our pmd-bin-xxx.zip distribution.

Currently we are using java util logging.

Tasks:

  • Decide on the logging backend (log4j, logback, ...) and provide a default runtime + test
    configuration
  • Integrate it into the CLI flags (-debug)
  • Fix dist (add missing dependency, provide default simplelogger.properties)
  • Test dist
  • Fix ant (AntLogger)
  • Remove logback-classic from apex-jorje
  • Create a custom PMD rule to avoid usage of java.util.logging - only slf4j should be allowed. In build-tools.
  • Refactor logging statements (split into tasks/PRs for each pmd module)

Metadata

Metadata

Assignees

Labels

an:enhancementAn improvement on existing features / rulesdependenciesPull requests that update a dependency filein:pmd-internalsAffects PMD's internals

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions