-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log4jEventBuilder does not support dynamic fqcn so incompatible with slf4j #1533
Comments
Thanks for the report. If you submit a PR, we should be able to include it in the next release. The Log4j's equivalent of SLF4J's |
I created a fix here: #1534 Let me know if my intention is clear. |
@oshai, thank You for your contribution. |
@ppkarwasz Thanks! Do you know which / when a new version will be released with the fix? |
We try to release quarterly, so version 2.20.1 is already overdue. However everything depends on our daily jobs, since the release process requires a lot of time. |
Thanks! |
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
Reproduction
See reproduction here: oshai/kotlin-logging@92378ee
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.
The text was updated successfully, but these errors were encountered: