-
-
Notifications
You must be signed in to change notification settings - Fork 84
Add apollo-plugin-log4j2 module to support log4j2.xml integration
#6
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
Conversation
5789cac to
c8e76fc
Compare
Codecov Report
@@ Coverage Diff @@
## main #6 +/- ##
============================================
+ Coverage 67.80% 67.84% +0.03%
- Complexity 1164 1165 +1
============================================
Files 165 165
Lines 5109 5109
Branches 559 559
============================================
+ Hits 3464 3466 +2
+ Misses 1377 1376 -1
+ Partials 268 267 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
c8e76fc to
ba3e93d
Compare
baf17a9 to
68ca735
Compare
|
It looks great! |
| # Apollo Log4j2 | ||
|
|
||
| This module could let you integrate log4j2 with apollo easily. | ||
| You could create a namespace `log42.xml`, then log4j2 will load the configuration from it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maintain the document in https://github.com/apolloconfig/apollo/tree/master/docs is better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, the docs will be updated if this PR was approved.
...log4j2/src/main/java/com/ctrip/framework/apollo/log4j2/ApolloLog4j2ConfigurationFactory.java
Outdated
Show resolved
Hide resolved
4af1c9f to
0985e04
Compare
apollo-log4j2 module to support log4j2.xml integrationapollo-plugin-log4j2 module to support log4j2.xml integration
Anilople
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
We haven't update the |
Co-authored-by: Jason Song <[email protected]>
Co-authored-by: Jason Song <[email protected]>
nobodyiam
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What's the purpose of this PR
Add
apollo-log4j2module to support log4j2.xml integration, I have extended this module for a long time, and it works well in our production practice. I think it is better to discuss this with the community.Which issue(s) this PR fixes:
Brief changelog
org.apache.logging.log4j.core.config.ConfigurationFactory, ref docs: log4j/2.x/manual/customconfiglog4j2.xmlin the classpath, whenapollo.log4j2.enabled=true, log4j2 will load the configuration from apollo.Follow this checklist to help us incorporate your contribution quickly and easily:
mvn clean testto make sure this pull request doesn't break anything.CHANGESlog.