Simple logging service for sammler.
sammler-log-service can be configured by the following environment variables:
-
PORT
- The port to run the REST API (defaults to3004
). SAMMLER_DB_URI_LOGS
sammler-log-service is a very simple logging service, which just acts as a temporary solution to get some logging up and running.
It logs to MongoDB and exposes some endpoints to create and to retrieve logs.
The solution will potentially be replaced or extended in the future (logstash, winston=>mongodb, etc.).
The functionality of sammler-log-service is documented in a swagger file, available at http://localhost:3004/api-docs when running the image.
Run
$ yarn dc-dev-up
Which will spin up a MongoDB instance at port 27018 (to prevent conflicts with the default port).
Then run the tests:
$ yarn run test
Stefan Walther
Released under the MIT license.