apache / apache/logging-log4j2
Improve error message if Log4j API implementation missing
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.7k
- Avg merge
- 21h 30m
- Merged PRs (30d)
- 27
Description
As showed by [this SO question](https://stackoverflow.com/q/79389054/11748454) users might be quite surprised by the error message printed, when no Log4j API implementation is present (or enabled) on the classpath.
The message should probably be similar to the one printed by SLF4J:
```
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#noProviders for further details.
```
and point to our [Installation instructions](https://logging.apache.org/log4j/2.x/manual/installation.html#impl).
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the error path used when no Log4j API implementation is present or enabled on the classpath. Compare its output with the example SLF4J messages and update the guidance to point to the Installation instructions at logging.apache.org/log4j/2.x/manual/installation.html#impl; done means users receive a clear explanation and setup link.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- observability-sre
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100