All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ni-transformer-test.2.0.11-RC6.source-code.logback.xml Maven / Gradle / Ivy

There is a newer version: 2.0.12-RC1
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
	<include resource="org/springframework/boot/logging/logback/base.xml" />
	<property name="LOG_PATH" value="logs" />
	<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
		<layout class="ch.qos.logback.classic.PatternLayout">
			<pattern>%highlight(%d{dd-MM-yyyy HH:mm:ss.SSS} [%thread] %class{0} %-5level) %cyan(%logger{15}) [%file: %line] - %msg %n</pattern>
		</layout>
	</appender>

	<appender name="SAVE-TO-FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
		<file>${LOG_PATH}/transformers.log</file>
		<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
			<pattern>%highlight(%d{dd-MM-yyyy HH:mm:ss.SSS} [%thread] %class{0} %-5level) %cyan(%logger{15}) [%file: %line] - %msg %n</pattern>
		</encoder>

		<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
			<fileNamePattern>${LOG_PATH}/transformers.%d{dd-MM-yyyy}.log</fileNamePattern>
		</rollingPolicy>
		<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
			<fileNamePattern>${LOG_PATH}/transformers%i.log</fileNamePattern>
		</rollingPolicy>
		<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
			<maxFileSize>1MB</maxFileSize>
		</triggeringPolicy>
	</appender>

	<root level="INFO" additivity="false">
		<appender-ref ref="SAVE-TO-FILE" />
		<appender-ref ref="STDOUT" />
	</root>

</configuration>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy