Skip to content

Commit c0d552f

Browse files
committed
enhanced logging
1 parent d3f4316 commit c0d552f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

srv/src/main/resources/application.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
logging:
33
level:
44
'[com.sap.cds.auditlog]': DEBUG
5+
'[com.sap.cds.persistence.sql]': DEBUG
6+
'[com.sap.cds.handlers]': DEBUG
57
spring:
68
jmx:
79
enabled: true

srv/src/main/resources/logback-spring.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
<!DOCTYPE xml>
33
<configuration debug="false" scan="false">
44
<springProfile name="cloud">
5-
<appender name="STDOUT-JSON" class="ch.qos.logback.core.ConsoleAppender">
5+
<!-- appender name="STDOUT-JSON" class="ch.qos.logback.core.ConsoleAppender">
66
<encoder class="com.sap.hcp.cf.logback.encoder.JsonEncoder"/>
77
</appender>
88
<root level="${LOG_ROOT_LEVEL:-INFO}">
99
<appender-ref ref="STDOUT-JSON" />
10-
</root>
10+
</root -->
11+
<include resource="org/springframework/boot/logging/logback/base.xml" />
12+
<logger name="com.sap.hcp.cf.logging.servlet.filter.RequestLogger" level="WARN" />
1113
</springProfile>
1214
<springProfile name="!cloud">
1315
<include resource="org/springframework/boot/logging/logback/base.xml" />

0 commit comments

Comments
 (0)