This project is used to demonstrate usage of vertx-web-accesslog and other log related components in a real vertx application.
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 fatjar like this
./gradlew shadowJar
java -jar -Daccess.location=/tmp build/libs/shadow.jar
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"