Spring Boot Request Logging

Spring Boot starter for enhanced http request logging

License

License

Categories

Categories

Spring Boot Container Microservices Logging Application Layer Libs
GroupId

GroupId

com.etherealscope
ArtifactId

ArtifactId

request-logging-spring-boot-starter
Last Version

Last Version

5.0.0
Release Date

Release Date

Type

Type

pom.sha512
Description

Description

Spring Boot Request Logging
Spring Boot starter for enhanced http request logging
Project URL

Project URL

https://github.com/etherealscope/request-logging
Source Code Management

Source Code Management

https://github.com/etherealscope/request-logging

Download request-logging-spring-boot-starter

Dependencies

runtime (1)

Group / Artifact Type Version
com.etherealscope : request-logging-autoconfigure jar 5.0.0

Project Modules

There are no modules declared in this project.

request-logging project

Spring boot starter for request and response logging.

It adds filter with the highest precedence.

How to use

dependencies {
    implementation("com.etherealscope:request-logging-spring-boot-starter:5.0.0")
}

Config keys with examples

ethereal.logging.enabled=true
ethereal.logging.include-time-elapsed=true
ethereal.logging.status-codes=sc_any

ethereal.logging.request.enabled=true
ethereal.logging.request.include-headers=true
ethereal.logging.request.include-payload=true
ethereal.logging.request.include-query-params=true
ethereal.logging.request.include-ip-address=false
ethereal.logging.request.max-payload-size=4096
ethereal.logging.request.white-listed-content-types=application/json
ethereal.logging.request.black-listed-content-types=image/png
ethereal.logging.request.white-listed-servlet-paths=/public/**
ethereal.logging.request.black-listed-servlet-paths=/public/**
ethereal.logging.request.masks[0].path-matcher=/**
ethereal.logging.request.masks[0].masked-headers=authorization,cookie
ethereal.logging.request.masks[1].method=POST
ethereal.logging.request.masks[1].path-matcher=/login
ethereal.logging.request.masks[1].masked-query-params=password

ethereal.logging.response.enabled=true
ethereal.logging.response.include-headers=true
ethereal.logging.response.include-payload=true
ethereal.logging.response.max-payload-size=4096
ethereal.logging.response.white-listed-content-types=application/json
ethereal.logging.response.black-listed-content-types=image/png
ethereal.logging.response.white-listed-servlet-paths=/public/**
ethereal.logging.response.black-listed-servlet-paths=/public/**
ethereal.logging.response.masks[0].path-matcher=/**
ethereal.logging.response.masks[0].masked-json-fields=password,oldPassword

Versions

Version
5.0.0