-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathlog4j2.xml
More file actions
27 lines (24 loc) · 1.04 KB
/
log4j2.xml
File metadata and controls
27 lines (24 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="warn" strict="true">
<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>