You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hugegraph.apache.org by vg...@apache.org on 2024/04/25 03:02:39 UTC

(incubator-hugegraph) 04/05: format hg-pd-test

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

vgalaxies pushed a commit to branch intro-pd-fin
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git

commit 58f5ddf2b5178a74065bd6fb62060ebf6e412a81
Author: VGalaxies <dy...@gmail.com>
AuthorDate: Thu Apr 25 10:56:16 2024 +0800

    format hg-pd-test
---
 .../hg-pd-test/src/main/resources/log4j2.xml       | 68 +++++++++++-----------
 1 file changed, 34 insertions(+), 34 deletions(-)

diff --git a/hugegraph-pd/hg-pd-test/src/main/resources/log4j2.xml b/hugegraph-pd/hg-pd-test/src/main/resources/log4j2.xml
index 82f1bce8c..e462bf16e 100644
--- a/hugegraph-pd/hg-pd-test/src/main/resources/log4j2.xml
+++ b/hugegraph-pd/hg-pd-test/src/main/resources/log4j2.xml
@@ -26,32 +26,32 @@
 
     <appenders>
         <Console name="console" target="SYSTEM_OUT">
-            <ThresholdFilter level="DEBUG" onMatch="ACCEPT" onMismatch="DENY"/>
-            <PatternLayout pattern="%-d{yyyy-MM-dd HH:mm:ss} [%t] [%p] %c{1.} - %m%n"/>
+            <ThresholdFilter level="DEBUG" onMatch="ACCEPT" onMismatch="DENY" />
+            <PatternLayout pattern="%-d{yyyy-MM-dd HH:mm:ss} [%t] [%p] %c{1.} - %m%n" />
         </Console>
 
         <!-- Normal server log config -->
         <RollingRandomAccessFile name="file" fileName="${LOG_PATH}/${FILE_NAME}.log"
                                  filePattern="${LOG_PATH}/$${date:yyyy-MM}/${FILE_NAME}-%d{yyyy-MM-dd}-%i.log"
                                  bufferedIO="true" bufferSize="524288" immediateFlush="false">
-            <ThresholdFilter level="TRACE" onMatch="ACCEPT" onMismatch="DENY"/>
-            <PatternLayout pattern="%-d{yyyy-MM-dd HH:mm:ss} [%t] [%p] %c{1.} - %m%n"/>
+            <ThresholdFilter level="TRACE" onMatch="ACCEPT" onMismatch="DENY" />
+            <PatternLayout pattern="%-d{yyyy-MM-dd HH:mm:ss} [%t] [%p] %c{1.} - %m%n" />
             <!--JsonLayout compact="true" eventEol="true" complete="true" locationInfo="true">
                 <KeyValuePair key="timestamp" value="$${date:yyyy-MM-dd HH:mm:ss.SSS}"/>
             </JsonLayout-->
             <!-- Trigger after exceeding 1day or 50MB -->
             <Policies>
-                <SizeBasedTriggeringPolicy size="128MB"/>
-                <TimeBasedTriggeringPolicy interval="1" modulate="true"/>
+                <SizeBasedTriggeringPolicy size="128MB" />
+                <TimeBasedTriggeringPolicy interval="1" modulate="true" />
             </Policies>
             <!-- Keep 5 files per day & auto delete after over 2GB or 100 files -->
             <DefaultRolloverStrategy max="16">
                 <Delete basePath="${LOG_PATH}" maxDepth="2">
-                    <IfFileName glob="*/*.log"/>
+                    <IfFileName glob="*/*.log" />
                     <!-- Limit log amount & size -->
                     <IfAny>
-                        <IfAccumulatedFileSize exceeds="2GB"/>
-                        <IfAccumulatedFileCount exceeds="100"/>
+                        <IfAccumulatedFileSize exceeds="2GB" />
+                        <IfAccumulatedFileCount exceeds="100" />
                     </IfAny>
                 </Delete>
             </DefaultRolloverStrategy>
@@ -61,24 +61,24 @@
         <RollingRandomAccessFile name="raft_file" fileName="${LOG_PATH}/${FILE_NAME}_raft.log"
                                  filePattern="${LOG_PATH}/$${date:yyyy-MM}/${FILE_NAME}-%d{yyyy-MM-dd}-%i.log"
                                  bufferedIO="true" bufferSize="524288" immediateFlush="false">
-            <ThresholdFilter level="TRACE" onMatch="ACCEPT" onMismatch="DENY"/>
-            <PatternLayout pattern="%-d{yyyy-MM-dd HH:mm:ss} [%t] [%p] %c{1.} - %m%n"/>
+            <ThresholdFilter level="TRACE" onMatch="ACCEPT" onMismatch="DENY" />
+            <PatternLayout pattern="%-d{yyyy-MM-dd HH:mm:ss} [%t] [%p] %c{1.} - %m%n" />
             <!--JsonLayout compact="true" eventEol="true" complete="true" locationInfo="true">
                 <KeyValuePair key="timestamp" value="$${date:yyyy-MM-dd HH:mm:ss.SSS}"/>
             </JsonLayout-->
             <!-- Trigger after exceeding 1day or 50MB -->
             <Policies>
-                <SizeBasedTriggeringPolicy size="128MB"/>
-                <TimeBasedTriggeringPolicy interval="1" modulate="true"/>
+                <SizeBasedTriggeringPolicy size="128MB" />
+                <TimeBasedTriggeringPolicy interval="1" modulate="true" />
             </Policies>
             <!-- Keep 5 files per day & auto Delete after over 2GB or 100 files -->
             <DefaultRolloverStrategy max="16">
                 <Delete basePath="${LOG_PATH}" maxDepth="2">
-                    <IfFileName glob="*/*.log"/>
+                    <IfFileName glob="*/*.log" />
                     <!-- Limit log amount & size -->
                     <IfAny>
-                        <IfAccumulatedFileSize exceeds="2GB"/>
-                        <IfAccumulatedFileCount exceeds="100"/>
+                        <IfAccumulatedFileSize exceeds="2GB" />
+                        <IfAccumulatedFileCount exceeds="100" />
                     </IfAny>
                 </Delete>
             </DefaultRolloverStrategy>
@@ -88,25 +88,25 @@
         <RollingRandomAccessFile name="audit" fileName="${LOG_PATH}/audit-${FILE_NAME}.log"
                                  filePattern="${LOG_PATH}/$${date:yyyy-MM}/audit-${FILE_NAME}-%d{yyyy-MM-dd-HH}-%i.gz"
                                  bufferedIO="true" bufferSize="524288" immediateFlush="false">
-            <ThresholdFilter level="TRACE" onMatch="ACCEPT" onMismatch="DENY"/>
+            <ThresholdFilter level="TRACE" onMatch="ACCEPT" onMismatch="DENY" />
             <!-- Use simple format for audit log to speed up -->
             <!-- PatternLayout pattern="%-d{yyyy-MM-dd HH:mm:ss} - %m%n"/ -->
             <JsonLayout compact="true" eventEol="true" locationInfo="true">
-                <KeyValuePair key="timestamp" value="$${date:yyyy-MM-dd HH:mm:ss.SSS}"/>
+                <KeyValuePair key="timestamp" value="$${date:yyyy-MM-dd HH:mm:ss.SSS}" />
             </JsonLayout>
             <!-- Trigger after exceeding 1hour or 500MB -->
             <Policies>
-                <SizeBasedTriggeringPolicy size="512MB"/>
-                <TimeBasedTriggeringPolicy interval="1" modulate="true"/>
+                <SizeBasedTriggeringPolicy size="512MB" />
+                <TimeBasedTriggeringPolicy interval="1" modulate="true" />
             </Policies>
             <!-- Keep 2 files per hour & auto delete [after 60 days] or [over 5GB or 500 files] -->
             <DefaultRolloverStrategy max="16">
                 <Delete basePath="${LOG_PATH}" maxDepth="2">
-                    <IfFileName glob="*/*.gz"/>
-                    <IfLastModified age="60d"/>
+                    <IfFileName glob="*/*.gz" />
+                    <IfLastModified age="60d" />
                     <IfAny>
-                        <IfAccumulatedFileSize exceeds="5GB"/>
-                        <IfAccumulatedFileCount exceeds="500"/>
+                        <IfAccumulatedFileSize exceeds="5GB" />
+                        <IfAccumulatedFileCount exceeds="500" />
                     </IfAny>
                 </Delete>
             </DefaultRolloverStrategy>
@@ -115,25 +115,25 @@
 
     <loggers>
         <root level="INFO">
-            <appender-ref ref="file"/>
-            <appender-ref ref="console"/>
+            <appender-ref ref="file" />
+            <appender-ref ref="console" />
         </root>
         <logger name="com.alipay.sofa" level="INFO" additivity="false">
-            <appender-ref ref="raft_file"/>
-            <appender-ref ref="console"/>
+            <appender-ref ref="raft_file" />
+            <appender-ref ref="console" />
         </logger>
         <logger name="io.netty" level="INFO" additivity="false">
-            <appender-ref ref="file"/>
-            <appender-ref ref="console"/>
+            <appender-ref ref="file" />
+            <appender-ref ref="console" />
         </logger>
         <logger name="org.apache.commons" level="INFO" additivity="false">
-            <appender-ref ref="file"/>
-            <appender-ref ref="console"/>
+            <appender-ref ref="file" />
+            <appender-ref ref="console" />
         </logger>
         <!-- Use mixed async way to output logs -->
         <AsyncLogger name="org.apache.hugegraph" level="INFO" additivity="false">
-            <appender-ref ref="file"/>
-            <appender-ref ref="console"/>
+            <appender-ref ref="file" />
+            <appender-ref ref="console" />
         </AsyncLogger>
     </loggers>
 </configuration>