Kimahriman opened a new pull request, #743:
URL: https://github.com/apache/incubator-sedona/pull/743

   
   ## Did you read the Contributor Guide?
   
   - Yes, I have read [Contributor 
Rules](https://sedona.apache.org/community/rule/) and [Contributor Development 
Guide](https://sedona.apache.org/community/develop/)
   
   ## Is this PR related to a JIRA ticket?
   
   - Yes, the URL of the assoicated JIRA ticket is 
https://issues.apache.org/jira/browse/SEDONA-228. The PR name follows the 
format `[SEDONA-XXX] my subject`.
   
   ## What changes were proposed in this PR?
   Standardize on using log4j 2 for logging. Currently the logging modules are 
pulled in from Spark to use log4j 1 or 2 depending on the Spark version. The 
common module and flink module have no logging available to it. Both Flink and 
Spark use Log4j 2.x in their latest versions.
   
   Main points:
   - Add `log4j-1.2-api` as a provided dependency for all modules. Currently 
all the logging uses the log4j 1.x API, so this makes that compatible while 
still being able to run log4j 2.x (which is what actually happens at runtime 
with new flink and spark). Long term the logging should probably be switched to 
use SLF4J so the underlying implementation doesn't matter as much (this is also 
what flink and spark actually use I think)
   - Add `log4j-core` and `log4j-slf4j-impl` as test dependencies so they log4j 
2.x gets used for logging for all tests
   - Add a log4j2.properties file as a test resource to all projects so logs 
get set to `target/unit-tests.log` to reduce the verbosity of tests when 
running locally and for finding what tests fail in the CI logs. This was copied 
from how the Spark repo does it.
   
   ## How was this patch tested?
   Just logging changes, existing tests.
   
   ## Did this PR include necessary documentation updates?
   
   - No, this PR does not affect any public API so no need to change the docs.
   


-- 
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