[KYUUBI #6268] Specify logDir for RollingFile filePattern
# 🔍 Description ## Issue References 🔗 This pull request fixes # ## Describe Your Solution 🔧 We should specify `sys:logDir` for RollingFile filePattern, otherwise the log will be rolled to kyuubi work directory. ## Types of changes 🔖 - [X] Bugfix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Test Plan 🧪 #### Behavior Without This Pull Request ⚰️ #### Behavior With This Pull Request 🎉 #### Related Unit Tests --- # Checklist 📝 - [X] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) **Be nice. Be informative.** Closes #6268 from wForget/hotfix2. Closes #6268 b599583be [wforget] Specify logDir for RollingFile filePattern Authored-by: wforget <643348094@qq.com> Signed-off-by: wforget <643348094@qq.com>
This commit is contained in:
parent
42c619a5ac
commit
a26156b8f4
@ -34,7 +34,7 @@
|
||||
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} %p %tn %c: %m%n%ex"/>
|
||||
</Console>
|
||||
<RollingFile name="restAudit" fileName="${sys:logDir}/${sys:restAuditLogPath}"
|
||||
filePattern="${sys:restAuditLogFilePattern}">
|
||||
filePattern="${sys:logDir}/${sys:restAuditLogFilePattern}">
|
||||
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} %p %c{1}: %m%n%ex"/>
|
||||
<Policies>
|
||||
<SizeBasedTriggeringPolicy size="51200KB" />
|
||||
@ -42,7 +42,7 @@
|
||||
<DefaultRolloverStrategy max="10"/>
|
||||
</RollingFile>
|
||||
<RollingFile name="k8sAudit" fileName="${sys:logDir}/${sys:k8sAuditLogPath}"
|
||||
filePattern="${sys:k8sAuditLogFilePattern}">
|
||||
filePattern="${sys:logDir}/${sys:k8sAuditLogFilePattern}">
|
||||
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} %p %c{1}: %m%n%ex"/>
|
||||
<Policies>
|
||||
<SizeBasedTriggeringPolicy size="51200KB" />
|
||||
@ -50,7 +50,7 @@
|
||||
<DefaultRolloverStrategy max="10"/>
|
||||
</RollingFile>
|
||||
<RollingFile name="opAudit" fileName="${sys:logDir}/${sys:opAuditLogPath}"
|
||||
filePattern="${sys:opAuditLogFilePattern}">
|
||||
filePattern="${sys:logDir}/${sys:opAuditLogFilePattern}">
|
||||
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} %p %c{1}: %m%n%ex"/>
|
||||
<Policies>
|
||||
<SizeBasedTriggeringPolicy size="51200KB" />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user