You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you please guide me on how to integrate logback-access with Spring Boot v3.0.6 (Apache Tomcat/10.1.8) in order to print out both the request and response bodies. Below is my attempt to do that by using https://github.com/qos-ch/logback, but nothing prints out. Any help would be greatly appreciated.
build.gradle:
plugins {
id 'java'
id 'org.springframework.boot' version '3.0.6'
id 'io.spring.dependency-management' version '1.1.0'
}
group ='com.example'
version ='0.0.1-SNAPSHOT'
sourceCompatibility ='17'
repositories {
mavenCentral()
}
dependencies {
implementation 'ch.qos.logback:logback-core:1.4.7'
implementation 'ch.qos.logback:logback-access:1.4.7'
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
tasks.named('test') {
useJUnitPlatform()
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have already created an issue at: akkinoc/logback-access-spring-boot-starter#339 some days ago and now I am trying to further investigate what the problem is, but need some help. Now, it works only for
application/x-www-form-urlencoded
request content and no response body is being printed out at all. (by using https://github.com/akkinoc/logback-access-spring-boot-starter/)Can you please guide me on how to integrate
logback-access
withSpring Boot v3.0.6 (Apache Tomcat/10.1.8)
in order to print out both the request and response bodies. Below is my attempt to do that by using https://github.com/qos-ch/logback, but nothing prints out. Any help would be greatly appreciated.build.gradle:
application.yml:
logback-access.xml:
LogbackAccessTeeFilter.java:
Beta Was this translation helpful? Give feedback.
All reactions