Skip to content

Conversation

ppkarwasz
Copy link
Contributor

@ppkarwasz ppkarwasz commented Jan 24, 2024

This PR moves the AsyncLogger and AsyncLoggerConfig classes from log4j-core to a separate log4j-async-logger artifact. It is part of #2163.

@ppkarwasz ppkarwasz self-assigned this Jan 24, 2024
@ppkarwasz ppkarwasz force-pushed the move-async branch 2 times, most recently from de345cc to 2b22eea Compare January 26, 2024 13:34
@ppkarwasz ppkarwasz marked this pull request as ready for review January 26, 2024 13:35
We move all the tests using `AsyncLogger` and `AsyncLoggerConfig` from
`log4j-core-test` to a new artifact `log4j-async-logger` in preparation
for splitting async support out of `log4j-core`.
This PR removes all occurences of `instanceof Async*` that might prevent
the separation of the async support.

The removal requires a couple of new API methods and binary incompatible
changes.
A couple more tests require changes to be independent from async loggers
and logger configurations.

The `CoreContextSelectors` class is not used, so we remove it.
This moves the main code for `AsyncLogger` and `AsyncLoggerConfig` to
`log4j-async-logger`.

Further tasks such as proper encapsulation into internal packages and
removal of the optional dependency guards, will be performed in a future
task.
@ppkarwasz ppkarwasz merged commit 4ad805a into main Jan 29, 2024
@ppkarwasz ppkarwasz deleted the move-async branch January 29, 2024 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant