Logging and Tracing with Context Information – Log4j, Zipkin and Spring Sleuth
Alexander Schwartz is Principal IT Consultant at msg systems. He’s been in Web development for more than 15 years and enjoys productive working environments, agile projects and automated tests. At conferences and user group meetings he talks about the things he is passionate about.
Error Messages in logs are the starting point of a search for clues. But if you’re running in a distributed Microservice environment, correlation of logs entries and tracing between services becomes important.
Logging frameworks can add context information that and log them together with the message. If you need more functionality, Zipkin can help you: It will provide correlation IDs to correlate log entries between systems. You can add this information to your existing logs or forward it to a central Zipkin server. You can augment the traces with tags so you can search them online.
This presentation gives an introduction about the possibilities of Log4j and shows the additional possibilities of Zipkin and Spring Sleuth.