-
Notifications
You must be signed in to change notification settings - Fork 525
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
feat(dist): support auto reload config & compress audit log #1492
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1492 +/- ##
============================================
- Coverage 63.63% 60.79% -2.85%
+ Complexity 5863 527 -5336
============================================
Files 381 423 +42
Lines 32190 35051 +2861
Branches 4506 4967 +461
============================================
+ Hits 20484 21309 +825
- Misses 9608 11599 +1991
- Partials 2098 2143 +45
Continue to review full report at Codecov.
|
f78d40d
to
4a7290b
Compare
Also enhance: - add time strategy to avoid old logs overwriting by current logs - auto create log folder if it does not exist - add some comment for auth config
4a7290b
to
e5d1985
Compare
<appenders> | ||
<Console name="console" target="SYSTEM_OUT"> | ||
<ThresholdFilter level="DEBUG" onMatch="ACCEPT" onMismatch="DENY"/> | ||
<PatternLayout pattern="%-d{yyyy-MM-dd HH:mm:ss} %-5r [%t] [%-5p] %c %x - %m%n"/> | ||
<PatternLayout pattern="%-d{yyyy-MM-dd HH:mm:ss} [%t] [%p] %c{1.} - %m%n"/> |
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.
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
<appenders> | ||
<Console name="console" target="SYSTEM_OUT"> | ||
<ThresholdFilter level="DEBUG" onMatch="ACCEPT" onMismatch="DENY"/> | ||
<PatternLayout pattern="%-d{yyyy-MM-dd HH:mm:ss} %-5r [%t] [%-5p] %c %x - %m%n"/> | ||
<PatternLayout pattern="%-d{yyyy-MM-dd HH:mm:ss} [%t] [%p] %c{1.} - %m%n"/> |
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
Also enhance: - add time strategy to avoid old logs overwriting by current logs - auto create log folder if it does not exist - add some comment for auth config * use strict mode for config property & separate rest configs * reduce log format length * Update rest-server.properties * update all configs (TODO: push to other modules)
Also enhance: - add time strategy to avoid old logs overwriting by current logs - auto create log folder if it does not exist - add some comment for auth config * use strict mode for config property & separate rest configs * reduce log format length * Update rest-server.properties * update all configs (TODO: push to other modules)
) Also enhance: - add time strategy to avoid old logs overwriting by current logs - auto create log folder if it does not exist - add some comment for auth config * use strict mode for config property & separate rest configs * reduce log format length * Update rest-server.properties * update all configs (TODO: push to other modules)
Also enhance:
The effect of configs like this: (audit log will compressed by exceeding 1day or 200MB, if we choose hour as basic file pattern, it will compressed by 1hour)
based on hour like this:
The diff between old & new log format:
TODO: after current
log4j2.xml
stable, then change other configs together