Skip to content

Conversation

remkop
Copy link
Contributor

@remkop remkop commented Apr 19, 2022

This PR implements the change discussed in https://issues.apache.org/jira/browse/LOG4J2-3472:

Allow the configuration of custom WaitStrategy implementations by specifying a org.apache.logging.log4j.core.async.AsyncWaitStrategyFactory implementation.
Configuration looks similar to the below:

<Configuration>
  <AsyncWaitStrategyFactory
      class="my.package.MyWaitStrategyFactory" />

Copy link
Member

@garydgregory garydgregory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @remkop
I scattered some comments.

@remkop
Copy link
Contributor Author

remkop commented Apr 19, 2022

@garydgregory Awesome fast feedback Gary! Super appreciated!

@garydgregory
Copy link
Member

@garydgregory Awesome fast feedback Gary! Super appreciated!

@remkop
You're welcome! 😀👍

@remkop
Copy link
Contributor Author

remkop commented Apr 19, 2022

@garydgregory Thanks for your replies! Are you okay with the PR as it is now? (The github review status still says "changes requested"...)

Copy link
Member

@garydgregory garydgregory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@remkop
Copy link
Contributor Author

remkop commented Apr 19, 2022

@carterkozak and @ppkarwasz Thank you for your reviews!

@remkop
Copy link
Contributor Author

remkop commented Apr 20, 2022

Rats, it turns out that I need to add the license text to some files:

log4j-core/src/main/java/org/apache/logging/log4j/core/async/AsyncWaitStrategyFactoryConfig.java
log4j-core/src/main/java/org/apache/logging/log4j/core/async/DefaultAsyncWaitStrategyFactory.java

I will do that when I get home later today.

Copy link
Contributor

@ppkarwasz ppkarwasz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@remkop remkop merged commit 786c011 into apache:release-2.x Apr 20, 2022
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.

4 participants