From 3003d72b134a20aeb4f5e6604011ddec4d1a0831 Mon Sep 17 00:00:00 2001 From: wforget <643348094@qq.com> Date: Tue, 9 Apr 2024 17:27:56 +0800 Subject: [PATCH] [KYUUBI #6268] Specify logDir for RollingFile filePattern MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # :mag: 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 :bookmark: - [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 :coffin: #### Behavior With This Pull Request :tada: #### 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> (cherry picked from commit a26156b8f4835028faefe469fa7f3be8f1d6c42a) Signed-off-by: wforget <643348094@qq.com> --- conf/log4j2.xml.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/log4j2.xml.template b/conf/log4j2.xml.template index 215fddf47..96f7051fb 100644 --- a/conf/log4j2.xml.template +++ b/conf/log4j2.xml.template @@ -35,7 +35,7 @@ + filePattern="${sys:logDir}/${sys:restAuditLogFilePattern}"> @@ -43,7 +43,7 @@ + filePattern="${sys:logDir}/${sys:k8sAuditLogFilePattern}">