# sammler-log-service

> Simple logging service for sammler.

Latest version **0.0.4** (published 2017-01-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install sammler-log-service
pnpm add sammler-log-service
yarn add sammler-log-service
bun add sammler-log-service
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2017-01-07 |
| First published | 2017-01-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=7.2 |
| Dependencies | 9 |
| Known vulnerabilities | 0 (+7 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Stefan Walther |
| Maintainers | stefanwalther |

## Links

- npm: https://www.npmjs.com/package/sammler-log-service
- Repository: https://github.com/sammler/sammler-log-service
- Homepage: https://github.com/sammler/sammler-log-service#readme
- Issues: https://github.com/sammler/sammler-log-service/issues
- npm.io page: https://npm.io/package/sammler-log-service

## Dependencies (9)

- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [express](https://npm.io/package/express.md) ^4.14.0
- [js-yaml](https://npm.io/package/js-yaml.md) ^3.7.0
- [winston](https://npm.io/package/winston.md) ^2.3.0
- [bluebird](https://npm.io/package/bluebird.md) ^3.4.7
- [mongoose](https://npm.io/package/mongoose.md) ^4.7.6
- [body-parser](https://npm.io/package/body-parser.md) ^1.15.2
- [http-status-codes](https://npm.io/package/http-status-codes.md) ^1.0.6
- [swagger-ui-express](https://npm.io/package/swagger-ui-express.md) ^1.0.2

## Recent versions

- 0.0.4 (latest) — 2017-01-07
- 0.0.3 — 2017-01-06

## README

# sammler-log-service

> Simple logging service for sammler.

[![CircleCI](https://img.shields.io/circleci/project/github/sammler/sammler-log-service.svg)](https://circleci.com/gh/sammler/sammler-log-service)

## 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](http://localhost:3004/api-docs) when running the image.

## Development
Run 

```sh
$ 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**

* [github/stefanwalther](https://github.com/stefanwalther)
* [twitter/waltherstefan](http://twitter.com/waltherstefan)

## License
Released under the MIT license.

---
_Source: https://npm.io/package/sammler-log-service · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
