d.ework-cloud-starter-log.1.8.5.source-code.logback-spring.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <configuration debug="false"> <springProperty scope="context" name="LEVEL" source="spring.loghub.level"/> <springProperty scope="context" name="ENDPOINT" source="spring.loghub.endpoint"/> <springProperty scope="context" name="ACCESSKEYID" source="spring.loghub.accessKeyId"/> <springProperty scope="context" name="ACCESSKEYSECRET" source="spring.loghub.accessKeySecret"/> <springProperty scope="context" name="PROJECT" source="spring.loghub.project"/> <springProperty scope="context" name="LOGSTORE" source="spring.loghub.logStore"/> <springProperty scope="context" name="TOPIC" source="spring.loghub.topic"/> <springProperty scope="context" name="SOURCE" source="spring.loghub.source"/> <springProperty scope="context" name="MDCFIELDS" source="spring.loghub.mdcFields"/> <conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter"/> <conversionRule conversionWord="wEx" converterClass="org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter"/> <property name="STDOUT_PATTERN" value="${STDOUT_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"/> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> <pattern>${STDOUT_PATTERN}</pattern> </encoder> </appender> <appender name="ALIYUN" class="com.eworkcloud.log.LoghubAppender"> <endpoint>${ENDPOINT}</endpoint> <accessKeyId>${ACCESSKEYID}</accessKeyId> <accessKeySecret>${ACCESSKEYSECRET}</accessKeySecret> <project>${PROJECT}</project> <logStore>${LOGSTORE}</logStore> <topic>${TOPIC}</topic> <source>${SOURCE}</source> <mdcFields>${MDCFIELDS}</mdcFields> </appender> <root level="${LEVEL}"> <appender-ref ref="STDOUT"/> <appender-ref ref="ALIYUN"/> </root> </configuration>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy