oshai opened a new issue, #1533:
URL: https://github.com/apache/logging-log4j2/issues/1533
## Description
In order to allow changing the fqcn (and support other wrapping frameworks
like slf4j kotlin-logging) in fluent api that logs line numbers, should make
Log4jEventBuilder implement CallerBoundaryAware.
## Configuration
**Version:** 2.20
## Logs
```
LoggingWithLocationTest[jvm] >
testNullLoggingWithLocationEntryExitOpt()[jvm] FAILED
org.opentest4j.AssertionFailedError: expected: <TRACE
ClassWithLoggingForLocationTesting.logExitOpt(26) - entry with (1, 2)
INFO ClassWithLoggingForLocationTesting.logExitOpt(27) - log entry body
TRACE ClassWithLoggingForLocationTesting.logExitOpt(28) - exit with
(null)> but was: <TRACE ClassWithLoggingForLocationTesting.logExitOpt(26) -
entry with (1, 2)
INFO LocationAwareKLogger.at(46) - log entry body
```
## Reproduction
See reproduction here:
https://github.com/oshai/kotlin-logging/pull/332/commits/92378ee81547c5bd301eb9d5fd9ef271fb5a1edf
The code switches to fluent api, and the unit test in github actions fails.
For example:
`LoggingWithLocationTest.testNullLoggingWithLocationEntryExitOpt()` with the
output above.
I can add a fix if you'd like.
--
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]