Skip to content

No error emitted when using a YAML configuration without additional dependency #1501

@designatevoid

Description

@designatevoid

Description

The software ignores YAML configuration silently if YAML configuration is used with the dependencies specified on the Maven, Ivy Gradle Artifacts page (log4j-api and log4j-core) but not with the Jackson Databind and YAML Data Format dependencies.

Configuration

Version: 2.20.0

Operating system: Windows 11 (build 22621.1702)

JDK: openjdk 19.0.2 2023-01-17

Logs

None, no warning about using default configurations or being unable to process a log4j2.yaml file found on the classpath.

Reproduction

  1. Create a YAML configuration file named log4j2.yaml on the classpath turning on debug messages.
  2. Create a unit test getting the logger and logging an error message and a debug message.
  3. Observe only the error message during runtime.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIncorrect, unexpected, or unintended behavior of existing codeconfigurationAffects the configuration system in a general way

    Type

    No type

    Projects

    Status

    To triage

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions