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

f.logging.sample-app-spring-boot.3.6.1.source-code.logback.xml Maven / Gradle / Ivy

There is a newer version: 3.8.4
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xml>
<configuration debug="false" scan="false">
	<turboFilter
		class="com.sap.hcp.cf.logback.filter.DynamicLevelPrefixLoggerTurboFilter" />
	<!-- write logs to console -->
	<appender name="STDOUT-JSON"
		class="ch.qos.logback.core.ConsoleAppender">
		<!-- encode and enrich full message with the required fields/tags -->
		<encoder class="com.sap.hcp.cf.logback.encoder.JsonEncoder">
			<contextFieldSupplier>com.sap.hcp.cf.logging.sample.springboot.statistics.StatisticsContextFieldSupplier</contextFieldSupplier>
			<!-- Uncomment to send message count as nested custom field: -->
			<!-- <customFieldMdcKeyName>message_count</customFieldMdcKeyName> -->
		</encoder>
	</appender>
	<appender name="STDOUT"
		class="ch.qos.logback.core.ConsoleAppender">
		<encoder>
			<pattern>%d %-5level [%thread] %logger{0} [%mdc]>: %msg
				%replace(%xEx){'\n', ' | '}%nopex%n</pattern>
		</encoder>
	</appender>
	<!-- default log level for all loggers is INFO by default -->
	<root level="${LOG_ROOT_LEVEL:-INFO}">
		<appender-ref ref="STDOUT-JSON" />
	</root>

	<logger name="com.sap.hcp.cf" level="${LOG_HCP_CF_LEVEL:-INFO}" />
</configuration>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy