f.logging.sample-app-spring-boot.3.8.5.source-code.log4j2.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sample-app-spring-boot Show documentation
Show all versions of sample-app-spring-boot Show documentation
Logging Sample App for Spring Boot
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