|
|
@ -48,9 +48,23 @@ |
|
|
|
<Async name="asyncSysAppender"> |
|
|
|
<AppenderRef ref="mongoSysAppender"/> |
|
|
|
</Async--> |
|
|
|
|
|
|
|
<!-- 1.引入appender --> |
|
|
|
<DwLog4j2Appender name="dwAppender" app="demo-athenaopt" endpoint="@lmcUrl@"> |
|
|
|
<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" /--> |
|
|
|