We can't use or debug a microservice if it doesn't record the actions that it carries out. In this section, we will start to use logging with our microservices to understand what is going on inside them. We will create a microservice that generates random values and attach a logger to a microservice to record the actions it carries out. Afterward, we will configure logging using environment variables.
Adding logging to a microservice
Random-value-generating microservices
To discuss these more advanced topics, we need a microservices architecture that has a more useful purpose than generating hello messages. We will create a microservice application for generating random values. This is simple enough to implement...