Skip to content

Configurator.setRootLevel does not work if multi-release jar is not set #3428

@hongwingl

Description

@hongwingl

Description

If multi-release jar is not enabled in fat jar, Configurator.setRootLevel function does not change log level.

Enabling multi-release fixes it.

Could be related to https://issues.apache.org/jira/browse/LOG4J2-2537

The pre java 9 implementation of the function probably does not work and fails silently.

Configuration

Version: 2.24.3

Operating system: Tried both linux and macOS

JDK: jdk17

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions