|
@ -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="@lmcUrl@"> |
|
|
<PatternLayout pattern="${LOG_PATTERN}"/> |
|
|
<PatternLayout pattern="${LOG_PATTERN}"/> |
|
|
</DwLog4j2Appender> |
|
|
</DwLog4j2Appender> |
|
|
<!– 2.引入异步节点 –> |
|
|
|
|
|
|
|
|
<!-- 2.引入异步节点 --> |
|
|
<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" /> |
|
|