Skip to content

Split CLI commands from log4j-1.2-api and log4j-core #2131

@ppkarwasz

Description

@ppkarwasz

There are a couple of CLI commands in the current 2.x artifacts. Their code is not used by other Log4j components.

log4j-1.2-api

log4j-1.2-api contains a Log4j1ConfigurationConverter, which shares code with the old (and disabled) Log4j1ConfigurationFactory. IMHO:

  • both components and their dependencies should be removed in 3.x,
  • their functionality should be moved to a separate component (in a new repo or logging-log4j-transform).

Remark that the new configuration factory used by log4j-1.2-api is based on org.apache.log4j.builders and is extensible.
With some minor adjustments to the o.a.l.b.Builder interface we can switch Log4j1ConfigurationConverter to the new infrastructure and use it in openrewrite/rewrite-logging-frameworks#48.

log4j-core

Log4j Core contains a simple custom logger generator and an old copy of remkop/picocli. This should also be removed from the main code and transfered to a new artifact.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions