apache / apache/logging-log4j2
No error emitted when using a YAML configuration without additional dependency
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.7k
- Avg merge
- 21h 30m
- Merged PRs (30d)
- 27
Description
## Description
The software ignores YAML configuration silently if YAML configuration is used with the dependencies specified on the [Maven, Ivy Gradle Artifacts page](https://logging.apache.org/log4j/2.x/maven-artifacts.html#Using_Log4j_in_your_Apache_Maven_build) (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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.