November 2019
Intermediate to advanced
408 pages
9h 56m
English
We need to configure the microservices in uWSGI so that we can forward the logs to the logging service. We will use the Thoughts Backend as an example, even though the Frontend and Users Backend, which can be found under the Chapter10/microservices directory, also have this configuration enabled.
Open the uwsgi.ini configuration file (https://github.com/PacktPublishing/Hands-On-Docker-for-Microservices-with-Python/blob/master/Chapter10/microservices/thoughts_backend/docker/app/uwsgi.ini). You'll see the following line:
# Log to the logger containerlogger = rsyslog:syslog:5140,thoughts_backend
This sends the logs, in rsyslog format, toward the syslog service at port 5140. We also add the facility, which is where the logs come ...
Read now
Unlock full access