7 Commits

3 changed files with 23 additions and 2 deletions
Split View
  1. +15
    -1
      demo-athenaopt_backend/develop/conf/log4j2.xml
  2. +7
    -0
      demo-athenaopt_backend/pom.xml
  3. +1
    -1
      version_control/BUILD

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

@ -48,9 +48,23 @@
<Async name="asyncSysAppender">
<AppenderRef ref="mongoSysAppender"/>
</Async-->
<!-- 1.引入appender -->
<DwLog4j2Appender name="dwAppender" app="demo-athenaopt" endpoint="http://172.16.2.141:22623">
<PatternLayout pattern="${LOG_PATTERN}"/>
</DwLog4j2Appender>
<!-- 2.引入异步节点 -->
<Async name="ASYNC-dwAppender">
<AppenderRef ref="dwAppender"/>
</Async>
</Appenders>
<Loggers>
<Root level="@logLevel@">
<!--<Root level="@logLevel@">-->
<Root level="ERROR">
<!-- 3.引入使用 -->
<appender-ref ref="ASYNC-dwAppender"/>
<appender-ref ref="consoleAppender" />
<appender-ref ref="rollingfileAppender" />
<!-- appender-ref ref="asyncSysAppender" /-->


+ 7
- 0
demo-athenaopt_backend/pom.xml View File

@ -56,6 +56,13 @@
<version>${api.version}</version>
</dependency>
<!--引入 lmc-sdk 依赖包-->
<dependency>
<groupId>com.digiwin.dap.middleware</groupId>
<artifactId>lmc-sdk-log4j2</artifactId>
<version>2.2.0.0</version>
</dependency>
<dependency>
<groupId>com.digiwin.lcdp</groupId>
<artifactId>lcdp-modeldriven</artifactId>


+ 1
- 1
version_control/BUILD View File

@ -1 +1 @@
1045
1045

Loading…
Cancel
Save