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

f.logging.sample-app-spring-boot.3.8.5.source-code.log4j2.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8"?>

<Configuration status="warn" strict="true"
	packages="com.sap.hcp.cf.log4j2">

	<DynamicLevelPrefixLoggerFilter />

	<Appenders>
		<Console name="STDOUT-JSON" target="SYSTEM_OUT" follow="true">
			<JsonPatternLayout charset="utf-8">
				<contextFieldSupplier class="com.sap.hcp.cf.logging.sample.springboot.statistics.StatisticsContextFieldSupplier" />
				<!-- Uncomment to send message count as nested custom field: -->
				<!-- <customField mdcKeyName="message_count" /> -->
			</JsonPatternLayout>
		</Console>
		<Console name="STDOUT" target="SYSTEM_OUT" follow="true">
			<PatternLayout
				pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} [%mdc] - %msg%n" />
		</Console>
	</Appenders>
	<Loggers>
		<Root level="${LOG_ROOT_LEVEL:-INFO}">
			<AppenderRef ref="STDOUT-JSON" />
		</Root>
		<Logger name="com.sap.hcp.cf" level="${LOG_HCP_CF_LEVEL:-INFO}" />
	</Loggers>
</Configuration>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy