1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
| Configuration: status: warn name: YAMLConfig log-impl: org.apache.ibatis.logging.stdout.StdOutImpl properties: property: - name: LOG_FILE_SIZE value: 500MB - name: FILE_PATH value: ${sys:logPath} appenders: Console: name: CONSOLE target: SYSTEM_OUT PatternLayout: charset: UTF-8 Pattern: '[%d{yyyy-MM-dd HH:mm:ss:SSS}] [%p] - %l - %m%n' ThresholdFilter: level: info onMatch: ACCEPT onMismatch: DENY SMTP: name: Mail subject: "ERROR等级日志" to: 1823795959@qq.com cc: 1823795959@qq.com from: 1823795959@qq.com smtpHost: smtp.qq.com smtpHost: 25 smtpProtocol: smtp smtpUsername: zhanbei smtpPassword: 123456 smtpDebug: false bufferSize: 1024 filter: RollingRandomAccessFile: - name: ROLLING_FILE_INFO fileName: ${FILE_PATH}info.log filePattern: ${FILE_PATH}info-%d{yyyy-MM-dd}_%i.log.gz PatternLayout: charset: UTF-8 Pattern: '%highlight{%date{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n}{INFO=bright white}' ThresholdFilter: level: info onMatch: ACCEPT onMismatch: DENY Policies: TimeBasedTriggeringPolicy: interval: 1 SizeBasedTriggeringPolicy: size: ${LOG_FILE_SIZE} DefaultRolloverStrategy: max: 30 - name: ROLLING_FILE_ERROR fileName: ${FILE_PATH}error.log filePattern: ${FILE_PATH}error-%d{yyyy-MM-dd}_%i.log.gz PatternLayout: charset: UTF-8 Pattern: '%highlight{%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %class{36} %L %M - %msg%xEx%rEx%n}{INFO=bright white}' ThresholdFilter: level: error onMatch: ACCEPT onMismatch: DENY Policies: TimeBasedTriggeringPolicy: interval: 1 SizeBasedTriggeringPolicy: size: ${LOG_FILE_SIZE} DefaultRolloverStrategy: max: 30 - name: ROLLING_P_FILE fileName: ${FILE_PATH}p.log filePattern: ${FILE_PATH}pay-%d{yyyy-MM-dd}_%i.log.gz PatternLayout: charset: UTF-8 Pattern: '%highlight{%date{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level - %msg%n}{INFO=bright white}' ThresholdFilter: level: info onMatch: ACCEPT onMismatch: DENY Policies: TimeBasedTriggeringPolicy: interval: 1 SizeBasedTriggeringPolicy: size: ${LOG_FILE_SIZE} DefaultRolloverStrategy: max: 30 - name: ROLLING_ACCESS_LOG_FILE fileName: ${FILE_PATH}access.log filePattern: ${FILE_PATH}access-%d{yyyy-MM-dd}_%i.log.gz PatternLayout: charset: UTF-8 Pattern: '%highlight{%date{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{10} %class{36} %L %M - %msg%n}{INFO=bright white}' ThresholdFilter: level: info onMatch: ACCEPT onMismatch: DENY Policies: TimeBasedTriggeringPolicy: interval: 1 SizeBasedTriggeringPolicy: size: ${LOG_FILE_SIZE} DefaultRolloverStrategy: max: 30 - name: ROLLING_THIRDPART_LOG_FILE fileName: ${FILE_PATH}thirdpart.log filePattern: ${FILE_PATH}thirdpart-%d{yyyy-MM-dd}_%i.log.gz PatternLayout: charset: UTF-8 Pattern: '%highlight{%date{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{10} %class{36} %L %M - %msg%n}{INFO=bright white}' ThresholdFilter: level: info onMatch: ACCEPT onMismatch: DENY Policies: TimeBasedTriggeringPolicy: interval: 1 SizeBasedTriggeringPolicy: size: ${LOG_FILE_SIZE} DefaultRolloverStrategy: max: 30
Loggers: AsyncLogger: - name: org.apache.kafka additivity: false level: ERROR - name: cn.itsource additivity: false - name: AccessLog level: info additivity: false AppenderRef: ref: ROLLING_ACCESS_LOG_FILE - name: ThirdPartLog level: info additivity: false AppenderRef: ref: ROLLING_THIRDPART_LOG_FILE Root: level: info AppenderRef: - ref: ROLLING_FILE_INFO - ref: ROLLING_FILE_ERROR
|