cookiejack15 opened a new pull request, #4089:
URL: https://github.com/apache/logging-log4j2/pull/4089

   Fixes #4068.
   
   ## Summary
   
   `SLF4JLogger.atFatal()` returns `atLevel(Level.TRACE)` instead of 
`atLevel(Level.FATAL)`. This was a copy-paste error introduced in commit 
`113a8e85f4` (LOG4J2-3647, 2023-01-13). Every `logger.atFatal().log(...)` call 
through the `log4j-to-slf4j` bridge emits at TRACE level, causing the message 
to be silently discarded in any environment where TRACE is disabled.
   
   ## Changes
   
   - **`SLF4JLogger.java`**: Changed `Level.TRACE` to `Level.FATAL` in 
`atFatal()`
   - **Changelog**: Added entry `4068_fix_SLF4JLogger_atFatal_wrong_level.xml`
   
   ## Affected versions
   
   2.20.0 through 2.24.3 (every release since the fluent API was added to the 
SLF4J bridge).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to