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