[#1385] improvement: Improve log4j appender layout pattern - #1386
Conversation
|
PTAL @jerqi |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1386 +/- ##
============================================
+ Coverage 53.22% 54.11% +0.89%
- Complexity 2718 2720 +2
============================================
Files 419 399 -20
Lines 23985 21633 -2352
Branches 2049 2051 +2
============================================
- Hits 12765 11707 -1058
+ Misses 10432 9208 -1224
+ Partials 788 718 -70 ☔ View full report in Codecov by Sentry. |
|
I will -1 for this PR, the line number will drop huge performance. And I don't think the line number is necessary for the log. |
|
@zuston You're right. I'll remove the line number. Any other suggestions here? Thanks. |
7437366 to
4ecc4b8
Compare
|
Can you give the comparison logs of after and before this patch ? @rickyma |
c794656 to
dbed737
Compare
|
PTAL @zuston Before this patch: After this patch: Also, I think the default MaxFileSize 50MB is too small, wouldn't it be better to set it to maybe 2GB? |
I think the original log is enough, too long package name is not necessary that will occupy too much space
This is OK for me. |
dbed737 to
731e39f
Compare
|
Updated. PTAL @zuston Before this patch: After this patch: |
…che#1386) ### What changes were proposed in this pull request? Improve the log4j appender layout pattern, by adding the full logger name and code line number. ### Why are the changes needed? For [apache#1385](apache#1385) ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? By running the process successfully and check the log4j output.
What changes were proposed in this pull request?
Improve the log4j appender layout pattern, by adding the full logger name and code line number.
Why are the changes needed?
For #1385
Does this PR introduce any user-facing change?
No.
How was this patch tested?
By running the process successfully and check the log4j output.