修改log4j2 日志输出的时间格式。
This commit is contained in:
parent
9bb3c0dd85
commit
547de1727d
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>com.cpic.xim</groupId>
|
||||
<artifactId>cpicxim-XMNHSA-repeater</artifactId>
|
||||
<version>v20250314</version>
|
||||
<version>v20250526</version>
|
||||
|
||||
<name>cpicxim-XMNHSA-repeater</name>
|
||||
<!-- FIXME change it to the project's website -->
|
||||
|
@ -56,8 +56,8 @@ public class HuixiabaoConfig
|
||||
private static final int MAX_COUNT_PER_REQUEST = 500;
|
||||
private static final int SLEEP_SECONDS = 10;
|
||||
|
||||
//private static final String url = "http://172.18.1.150:9040/h3c/new/api/gafe/rest";
|
||||
private static final String url = "http://172.16.39.44:9040/h3c/new/api/gafe/rest";
|
||||
private static final String url = "http://172.18.1.150:9040/h3c/new/api/gafe/rest";
|
||||
// private static final String url = "http://172.16.39.44:9040/h3c/new/api/gafe/rest";
|
||||
private static final String appid = "hxb-tb";
|
||||
private static final String appSecret = "60F468FB46170DD4CF6CBECE215DBFC0";
|
||||
private static final String funId = "XY00.00.00.03";
|
||||
|
@ -1,13 +1,13 @@
|
||||
<Configuration status="WARN" monitorInterval="300">
|
||||
<Appenders>
|
||||
<Console name="Console" target="SYSTEM_OUT">
|
||||
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} ### %msg%n" />
|
||||
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5level %logger{36} ### %msg%n" />
|
||||
<ThresholdFilter level="trace" onMatch="ACCEPT" onMismatch="DENY" />
|
||||
</Console>
|
||||
<RollingFile name="rolling_file_win"
|
||||
filePattern="./logs/huixiabao/$${date:yyyy-MM}/huixiabao-%d{MM-dd-yyyy}-%i.log.gz">
|
||||
<PatternLayout>
|
||||
<Pattern>[%t][%level][%d{HH:mm:ss.SSS}][%logger.%M{36}#%L] %msg%n</Pattern>
|
||||
<Pattern>[%t][%level][%d{yyyy-MM-dd HH:mm:ss.SSS}][%logger.%M{36}#%L] %msg%n</Pattern>
|
||||
</PatternLayout>
|
||||
<Policies>
|
||||
<TimeBasedTriggeringPolicy interval="1" />
|
||||
@ -18,7 +18,7 @@
|
||||
<RollingFile name="rolling_file_linux"
|
||||
filePattern="/logs/huixiabao/$${date:yyyy-MM}/app-%d{MM-dd-yyyy}-%i.log.gz">
|
||||
<PatternLayout>
|
||||
<Pattern>[%t][%level][%d{HH:mm:ss.SSS}][%logger.%M{36}#%L] %msg%n</Pattern>
|
||||
<Pattern>[%t][%level][%d{yyyy-MM-dd HH:mm:ss.SSS}][%logger.%M{36}#%L] %msg%n</Pattern>
|
||||
</PatternLayout>
|
||||
<Policies>
|
||||
<TimeBasedTriggeringPolicy interval="1" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user