One of the most important features of centralized logging is that it makes it possible to analyze errors using log records from many sources and, based on that, perform root cause analysis, that is, find the actual reason for the error message.
In this section, we will simulate an error and see how we can find information about it, all of the way down to the line of source code that caused the error in one of the microservices in the system landscape. To simulate an error, we will reuse the fault parameter we introduced in Chapter 13, Improving Resilience Using Resilience4j, in the Adding programmable delays and random errors section. We can use this to force the product microservice to throw an exception. Perform ...