Spring Boot Starter Request Logging Parent

Spring Boot starter for the poor mans request logging lib.

License

License

Categories

Categories

Spring Boot Container Microservices Logging Application Layer Libs
GroupId

GroupId

de.codeboje
ArtifactId

ArtifactId

request-logging-spring-boot-parent
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

pom
Description

Description

Spring Boot Starter Request Logging Parent
Spring Boot starter for the poor mans request logging lib.
Project URL

Project URL

https://github.com/azarai/request-logging
Project Organization

Project Organization

codeboje.de
Source Code Management

Source Code Management

https://github.com/azarai/request-logging-starter.git

Download request-logging-spring-boot-parent

How to add to project

<!-- https://jarcasting.com/artifacts/de.codeboje/request-logging-spring-boot-parent/ -->
<dependency>
    <groupId>de.codeboje</groupId>
    <artifactId>request-logging-spring-boot-parent</artifactId>
    <version>0.0.1</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/de.codeboje/request-logging-spring-boot-parent/
implementation 'de.codeboje:request-logging-spring-boot-parent:0.0.1'
// https://jarcasting.com/artifacts/de.codeboje/request-logging-spring-boot-parent/
implementation ("de.codeboje:request-logging-spring-boot-parent:0.0.1")
'de.codeboje:request-logging-spring-boot-parent:pom:0.0.1'
<dependency org="de.codeboje" name="request-logging-spring-boot-parent" rev="0.0.1">
  <artifact name="request-logging-spring-boot-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='de.codeboje', module='request-logging-spring-boot-parent', version='0.0.1')
)
libraryDependencies += "de.codeboje" % "request-logging-spring-boot-parent" % "0.0.1"
[de.codeboje/request-logging-spring-boot-parent "0.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • autoconfiguration
  • starter

A Spring Boot Starter for the request logging lib

This is a Spring Boot starter for the request-logging lib. It helps to follow reuqests along a microservices infrastructure; think Zipkin for the poor man - simple, with no overhead of running additional systems.

Dependency

<dependency>
  <groupId>de.codeboje</groupId>
  <artifactId>request-logging-spring-boot-starter</artifactId>
  <version>0.0.1</version>
</dependency>

Now add requestId as a user variable to your logback log pattern like:

%clr(%d{${LOG_DATEFORMAT_PATTERN:-yyyy-MM-dd HH:mm:ss.SSS}}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %X{requestId} - %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}

Extends the default Spring boot 2 log pattern.

Send the header X-REQUEST-ID with a unique ID when a user triggers an event like clicking the order button. This ID will now be passed along as long as the RequestContextLoggingFilter is active and you use Springs RestTemplate for subrequests.

Versions

Version
0.0.1