Browse Source

接入日志中心

develop
clong 1 year ago
parent
commit
053a476a97
2 changed files with 8 additions and 8 deletions
  1. +6
    -6
      demo-athenaopt_backend/develop/conf/log4j2.xml
  2. +2
    -2
      demo-athenaopt_backend/pom.xml

+ 6
- 6
demo-athenaopt_backend/develop/conf/log4j2.xml View File

@ -50,20 +50,20 @@
</Async--> </Async-->
<!-- 1.引入appender --> <!-- 1.引入appender -->
<DwLog4j2Appender name="dwAppender" app="demo-athenaopt" endpoint="https://lmc-hw-test.digiwincloud.com.cn">
<!-- <DwLog4j2Appender name="dwAppender" app="demo-athenaopt" endpoint="https://lmc-hw-test.digiwincloud.com.cn">
<PatternLayout pattern="${LOG_PATTERN}"/> <PatternLayout pattern="${LOG_PATTERN}"/>
</DwLog4j2Appender> </DwLog4j2Appender>
<!-- 2.引入异步节点 -->
&lt;!&ndash; 2.引入异步节点 &ndash;&gt;
<Async name="ASYNC-dwAppender"> <Async name="ASYNC-dwAppender">
<AppenderRef ref="dwAppender"/> <AppenderRef ref="dwAppender"/>
</Async>
</Async>-->
</Appenders> </Appenders>
<Loggers> <Loggers>
<!--<Root level="@logLevel@">-->
<Root level="ERROR">
<Root level="@logLevel@">
<!--<Root level="ERROR">-->
<!-- 3.引入使用 --> <!-- 3.引入使用 -->
<appender-ref ref="ASYNC-dwAppender"/>
<!--<appender-ref ref="ASYNC-dwAppender"/>-->
<appender-ref ref="consoleAppender" /> <appender-ref ref="consoleAppender" />
<appender-ref ref="rollingfileAppender" /> <appender-ref ref="rollingfileAppender" />


+ 2
- 2
demo-athenaopt_backend/pom.xml View File

@ -57,11 +57,11 @@
</dependency> </dependency>
<!--引入 lmc-sdk 依赖包--> <!--引入 lmc-sdk 依赖包-->
<dependency>
<!--<dependency>
<groupId>com.digiwin.dap.middleware</groupId> <groupId>com.digiwin.dap.middleware</groupId>
<artifactId>lmc-sdk-log4j2</artifactId> <artifactId>lmc-sdk-log4j2</artifactId>
<version>2.2.0.0</version> <version>2.2.0.0</version>
</dependency>
</dependency>-->
<dependency> <dependency>
<groupId>com.digiwin.lcdp</groupId> <groupId>com.digiwin.lcdp</groupId>


Loading…
Cancel
Save