fun-config-server.0.0.2-release.source-code.logback-spring.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fun-config-server Show documentation
Show all versions of fun-config-server Show documentation
build config-server standlone
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <configuration debug="false" scan="true" scanPeriod="30 seconds"> <include resource="org/springframework/boot/logging/logback/defaults.xml"/> <springProperty scope="context" name="APP_NAME" source="spring.application.name"/> <springProperty scope="context" name="LOG_HOME" source="logging.path"/> <contextName>${APP_NAME}</contextName> <property name="APP_FILE_A" value="${APP_FILE_A:-%d{yyyy-MM-dd HH:mm:ss.SSS} %5p [${APP_NAME},%X{X-B3-TraceId:-},%X{X-B3-SpanId:-},%X{X-Span-Export:-}] - [%t] %-40.40logger{39} [%L]: %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"/> <property name="APP_COLOR_A" value="${APP_COLOR_A:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p [${APP_NAME},%X{X-B3-TraceId:-},%X{X-B3-SpanId:-},%X{X-Span-Export:-}]) - %clr([%t]){magenta} %clr(%-40.40logger{39}){cyan} %clr([%L]){cyan}: %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"/> <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>${APP_COLOR_A}</pattern> </encoder> </appender> <appender name="ROLL_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${LOG_HOME}/${APP_NAME}.log</file> <append>true</append> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <!-- compress log file ***.log.gz --> <FileNamePattern>${LOG_HOME}/${APP_NAME}-%d{yyyyMMdd}.%i.log</FileNamePattern> <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> <maxFileSize>200MB</maxFileSize> </timeBasedFileNamingAndTriggeringPolicy> <!--<MaxHistory>360</MaxHistory>--> </rollingPolicy> <append>true</append> <encoder> <pattern>${APP_FILE_A}</pattern> </encoder> </appender> <springProfile name="default,test,dev"> <root level="INFO"> <appender-ref ref="CONSOLE"/> <appender-ref ref="ROLL_FILE"/> </root> </springProfile> <springProfile name="sit,uat,prod"> <root level="INFO"> <appender-ref ref="ROLL_FILE"/> </root> </springProfile> </configuration>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy