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

zykkk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new e4a1ce46419 [fix](jni) Fix jni.log not printing (#58457)
e4a1ce46419 is described below

commit e4a1ce464195e1f2675d95c3c4a4fa182063e1cf
Author: zy-kkk <[email protected]>
AuthorDate: Fri Nov 28 11:08:55 2025 +0800

    [fix](jni) Fix jni.log not printing (#58457)
    
    Replace `log4j.properties` with `log4j2.properties` using Log4j 2 native
    configuration format.
    Use `${sys:logPath}` instead of `${logPath}` for system property
    reference
---
 .../{log4j.properties => log4j2.properties}        | 32 ++++++++++++++--------
 1 file changed, 21 insertions(+), 11 deletions(-)

diff --git 
a/fe/be-java-extensions/java-common/src/main/resources/log4j.properties 
b/fe/be-java-extensions/java-common/src/main/resources/log4j2.properties
similarity index 53%
rename from 
fe/be-java-extensions/java-common/src/main/resources/log4j.properties
rename to fe/be-java-extensions/java-common/src/main/resources/log4j2.properties
index 42de6dad482..976882f8771 100644
--- a/fe/be-java-extensions/java-common/src/main/resources/log4j.properties
+++ b/fe/be-java-extensions/java-common/src/main/resources/log4j2.properties
@@ -5,9 +5,9 @@
 # to you under the Apache License, Version 2.0 (the
 # "License"); you may not use this file except in compliance
 # with the License.  You may obtain a copy of the License at
-
+#
 #   http://www.apache.org/licenses/LICENSE-2.0
-
+#
 # Unless required by applicable law or agreed to in writing,
 # software distributed under the License is distributed on an
 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -15,12 +15,22 @@
 # specific language governing permissions and limitations
 # under the License.
 
-log4j.rootLogger=INFO, RollingFile
-log4j.appender.RollingFile=org.apache.log4j.RollingFileAppender
-log4j.appender.RollingFile.Threshold=INFO
-log4j.appender.RollingFile.File=${logPath}
-log4j.appender.RollingFile.Append=true
-log4j.appender.RollingFile.MaxFileSize=10MB
-log4j.appender.RollingFile.MaxBackupIndex=5
-log4j.appender.RollingFile.layout=org.apache.log4j.PatternLayout
-log4j.appender.RollingFile.layout.ConversionPattern= %d{yyyy-MM-dd HH:mm:ss} 
%5p %t %-5l - %m%n
\ No newline at end of file
+status = error
+name = JniLog4j2Config
+
+# RollingFile appender
+appender.rolling.type = RollingFile
+appender.rolling.name = RollingFile
+appender.rolling.fileName = ${sys:logPath}
+appender.rolling.filePattern = ${sys:logPath}.%i
+appender.rolling.layout.type = PatternLayout
+appender.rolling.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %5p %t %-5l - %m%n
+appender.rolling.policies.type = Policies
+appender.rolling.policies.size.type = SizeBasedTriggeringPolicy
+appender.rolling.policies.size.size = 10MB
+appender.rolling.strategy.type = DefaultRolloverStrategy
+appender.rolling.strategy.max = 5
+
+# Root logger
+rootLogger.level = info
+rootLogger.appenderRef.rolling.ref = RollingFile


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to