<?xml version="1.0" encoding="UTF-8"?>
<configuration status="off" xmlns:xi="http://www.w3.org/2001/XInclude">
    <Properties>
        <Property name="appName">${sys:spring.application.name}</Property>
        <Property name="logdir">${env:LOG_BASE:-logs}/${appName}</Property>
        <Property name="PID">????</Property>
        <Property name="LOG_LEVEL_PATTERN">%5p</Property>
        <Property name="LOG_EXCEPTION_CONVERSION_WORD">%xwEx</Property>
        <Property name="LOG_DATEFORMAT_PATTERN">yyyy-MM-dd HH:mm:ss.SSS</Property>
        <Property name="CONSOLE_LOG_PATTERN">%clr{%d{${LOG_DATEFORMAT_PATTERN}}}{faint} %clr{${LOG_LEVEL_PATTERN}} %clr{${sys:PID}}{magenta} %clr{---}{faint} %clr{[%15.15t]}{faint} %clr{%C{36}.%M:%L}{cyan} %clr{:}{faint} %m%n${sys:LOG_EXCEPTION_CONVERSION_WORD}</Property>
    </Properties>
    <xi:include href="log4j2_appenders.xml">
        <xi:fallback/>
    </xi:include>
    <Loggers>
        <!-- 减少部分debug日志 -->
        <AsyncLogger name="org.springframework.context" level="WARN"/>
        <AsyncLogger name="org.springframework.beans" level="WARN"/>
        <AsyncLogger name="springfox.bean.validators" level="ERROR"/>
        <!-- 基础组件 -->
        <AsyncLogger name="RocketmqClient" level="WARN"/>
        <!-- blade日志 -->
        <AsyncLogger name="org.springblade.core" level="INFO"/>
        <Root level="INFO" additivity="false">
            <AppenderRef ref="Console"/>
            <AppenderRef ref="RollingFile"/>
            <AppenderRef ref="RollingFileError"/>
        </Root>
    </Loggers>
</configuration>
