Skip to content

romanpierson/vertx-logging-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vertx Logging Playground

This project is used to demonstrate usage of vertx-web-accesslog and other log related components in a real vertx application.

Features

For now those features and functionalities are demoed

  • vertx-web-accesslog ConsoleAppender
  • vertx-web-accesslog LoggingAppender with Logback
  • vertx-web-accesslog ElasticSearchAppender (still without ES setup - to come)
  • vertx-web-accesslog PrefixableConsoleAppender - example of custom Appender
  • vertx-web-accesslog MyCustomSecondDurationElement - shows how you can replace an existing pattern with your custom implementation
  • reactiverse-contextual-logging Using contextual logging (MDC) with logback

Build the app

Build the fatjar like this

./gradlew shadowJar

Run the app

java -jar -Daccess.location=/tmp build/libs/shadow.jar

Execute sample request

This runs a simple GET request on the app that will produce some useful access log

curl http://localhost:8080/test?requestId=test123 -v -H "Cookie: cookie1=cookie1Value; cookie2=cookie2Value"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages