sammler-log-service
v0.0.4
Published
Simple logging service for sammler.
Downloads
1
Readme
sammler-log-service
Simple logging service for sammler.
Configuration
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
Purpose
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.).
Features
The functionality of sammler-log-service is documented in a swagger file, available at http://localhost:3004/api-docs when running the image.
Development
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
Author
Stefan Walther
License
Released under the MIT license.