SDFIdk / WEBPROJ

REST API exposing coordinate transformations with PROJ
MIT License
8 stars 6 forks source link

Logging #10

Open kbevers opened 5 years ago

kbevers commented 5 years ago

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.

kthy commented 4 years ago

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/