# nodejs-log-server

> This is just a simple log server with nodejs and MongoDB (mongoose)

Latest version **0.0.14** (published 2017-01-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install nodejs-log-server
pnpm add nodejs-log-server
yarn add nodejs-log-server
bun add nodejs-log-server
```

Provides the command `nodejs-log-server`.

## 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.14 |
| Published | 2017-01-21 |
| First published | 2016-12-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+10 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | harttle |

## Links

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

## Dependencies (4)

- [marked](https://npm.io/package/marked.md) ^0.3.6
- [express](https://npm.io/package/express.md) ^4.14.0
- [mongoose](https://npm.io/package/mongoose.md) ^4.7.5
- [shopify-liquid](https://npm.io/package/shopify-liquid.md) ^1.6.1

## Recent versions

- 0.0.14 (latest) — 2017-01-21
- 0.0.13 — 2017-01-16
- 0.0.12 — 2017-01-16
- 0.0.11 — 2017-01-15
- 0.0.10 — 2017-01-15
- 0.0.9 — 2017-01-15
- 0.0.8 — 2017-01-15
- 0.0.7 — 2017-01-15
- 0.0.6 — 2017-01-15
- 0.0.5 — 2017-01-15
- 0.0.4 — 2016-12-31
- 0.0.3 — 2016-12-31
- 0.0.2 — 2016-12-31
- 0.0.1 — 2016-12-31

## README

This is just a simple log server powered by Nodejs and MongoDB

# Client Side Usage

```bash
# Sending logs with ID `foo` and Level `error`:
GET /post/foo?msg=firstLog&level=error

# Retrieve logs with ID `foo` and Level `error`
GET /get/foo?level=error

# Retrieve logs of all levels with ID `foo`
GET /get/foo?level=error

# Retrieve logs from all IDs
GET /get?level=error

# Delete logs with ID `foo`
GET /delete/foo

# Clear logs from all IDs
GET /delete
```

Parameters:

* `ID` (URL param) is used to trace the specific logger, can be arbitrary string.
* `level` (URL query) is used to filter log messages, typically be one of `debug`, `log`, `info`, `warn`, `error`.
* `msg` (URL query) contains the actual log message.

# Server Side Usage

Installation:

```bash
npm install nodejs-log-server
```

Env Variables:

```bash
# port default to 8777
export PORT=8777
```

Start:

```
nodejs-log-server
# Or use a process manager
pm2 start --name="log-server" nodejs-log-server
```

# Source

https://github.com/harttle/nodejs-log-server

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