Thank you for the fast reply! I really appreciate it.
Yeah, I will try to explain.
Let's imagine we have a process flow where we need to call an external service over REST. We use WireMock to emulate it.
When I get an error related to the mock, first of all I go to the DB that logs all these calls to the WireMock server. There I see the following details: request, response, status code, endpoint, attempts.
This WireMock server is set up in a k8s deployment, so we have a pod running it. Sometimes problems occur. For example, as I described above: we send a request, we get a response with the expected correct body, BUT with a bad HTTP status code (500).
I'm confused about this, because the problem was solved after restarting the pod, but I didn’t really investigate the error. So that was only a temporary solution.
Of course, I need some info to debug it, and logs will help me. That’s why I’m here! ❤️
Normally, logs are just printed to the console.
Does it mean that I need to inspect stdout and stderr streams to understand historical results? (Assuming the pod is still alive.)
And as I understand, verbose mode should be specified when starting the Java application? Generally logging will not work until we turn it on?