spring-boot-logging-web
by Eric Goetschalckx
Provides automated web request and response logging for Spring (including advanced logback functionality)
Minimum Requirements
Requires spring-boot-starter-web 2.0.0.RELEASE or higher.
Spring Configuration
spring-boot-logging-web includes request & response logging mechanisms for Spring RestTemplate and RestController.
These capabilities will have negative performance impact, so they are disabled by default. Including the body of the requests and responses in the log statements will further degrade performance.
The following configuration properties are available for managing logging settings:
# Logging settings 
logging:
  
  # Spring Web request response logging settings
  web:
      
      # Spring RestTemplate response logging settings
      client:
        # RestTemplate request response bo logging enabled
        # Optional (default is false)
        enabled: true
     
        # Include web request response body in logs
        # Has performance impact due to byte stream copying
        # Optional (default is false)
        include-body: true
      # Spring RestTemplate response logging settings
      server:
        # RestTemplate request response bo logging enabled
        # Optional (default is false)
        enabled: true
     
        # Include web request response body in logs
        # Has performance impact due to byte stream copying
        # Optional (default is false)
        include-body: true 
Notes
Works well with spring-boot-logging-json.