This is an automated email from the ASF dual-hosted git repository.

zuston pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-uniffle.git


The following commit(s) were added to refs/heads/master by this push:
     new 249c73784 [#1385] improvement: Improve log4j appender layout pattern 
(#1386)
249c73784 is described below

commit 249c7378474e0fa642c35b8fd2dc53e98ca47a80
Author: RickyMa <[email protected]>
AuthorDate: Wed Dec 27 13:51:31 2023 +0800

    [#1385] improvement: Improve log4j appender layout pattern (#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 [#1385](https://github.com/apache/incubator-uniffle/issues/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.
---
 conf/log4j.properties | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/conf/log4j.properties b/conf/log4j.properties
index 47f2eef15..315bd567d 100644
--- a/conf/log4j.properties
+++ b/conf/log4j.properties
@@ -20,10 +20,10 @@ log4j.appender.console=org.apache.log4j.ConsoleAppender
 log4j.appender.console.Threshold=INFO
 log4j.appender.console.target=System.err
 log4j.appender.console.layout=org.apache.log4j.PatternLayout
-log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p 
%c{1}: %m%n
+log4j.appender.console.layout.ConversionPattern=[%d{yyyy-MM-dd HH:mm:ss.SSS}] 
[%t] [%p] %c{1}.%M - %m%n
 log4j.appender.RollingAppender=org.apache.log4j.RollingFileAppender
 log4j.appender.RollingAppender.File=${log.path}
-log4j.appender.RollingAppender.MaxFileSize=50MB
+log4j.appender.RollingAppender.MaxFileSize=2GB
 log4j.appender.RollingAppender.MaxBackupIndex=10
 log4j.appender.RollingAppender.layout=org.apache.log4j.PatternLayout
-log4j.appender.RollingAppender.layout.ConversionPattern=[%p] %d %t %c{1} %M - 
%m%n
+log4j.appender.RollingAppender.layout.ConversionPattern=[%d{yyyy-MM-dd 
HH:mm:ss.SSS}] [%t] [%p] %c{1}.%M - %m%n
\ No newline at end of file

Reply via email to