Logging
kbevers opened this issue · comments
WEBPROJ needs to be able to log errors. This is slightly complicated by the fact that the application may run on several simultaneous docker instances. What is the best approach to logging? I see two possible solutions:
-
File based. Each docker container creates its own log file that is mapped to a file server outside the container. To avoid conflicting log files from two or more containers the file should include (part of) the container UUID.
-
Database. Log all errors to a common database outside the container.
I'd suggest setting up an ELK stack and spool the container logs into it. E.g. as per https://logz.io/blog/docker-logging/