SDFIdk / WEBPROJ

REST API exposing coordinate transformations with PROJ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  1. 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.

  2. 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/