sammler-log-service

Simple logging service for sammler.

Usage no npm install needed!

<script type="module">
  import sammlerLogService from 'https://cdn.skypack.dev/sammler-log-service';
</script>

README

sammler-log-service

Simple logging service for sammler.

CircleCI

Configuration

sammler-log-service can be configured by the following environment variables:

  • PORT - The port to run the REST API (defaults to 3004).
  • 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.