# @stud2design/marker

> A log utility library for javascript environment

Latest version **0.0.2** (published 2020-11-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @stud2design/marker
pnpm add @stud2design/marker
yarn add @stud2design/marker
bun add @stud2design/marker
```

## 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.2 |
| Published | 2020-11-16 |
| First published | 2020-11-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | stud2design |
| Keywords | logging, nodejs |

## Links

- npm: https://www.npmjs.com/package/@stud2design/marker
- npm.io page: https://npm.io/package/@stud2design/marker

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2020-11-16
- 0.0.1 — 2020-11-16

## README

# Marker

A logging utility library for adding minimal info when used with your express server.

## APIs

- interceptor
A middleware for our express server to intercept all requests and response.

- error
For logging error message, with context as second argument
( Provides call stack trace ).

- debug
Equivalent of console.log for developers.
For development use only, when in production these logs won’t be available even if developer forgets to remove or comment.

- info
Alias of `console.info`

- Alert currently part of `interceptor`
For starters alerts are send to Stats D for every request with payload `url` and `statusCode`.

## Batching

The library comes with feature to batch the log functions call, using process env variable `MARKER_BATCH_LIMIT`, the default value is 0.

## TODO

[ ] Unit Test Cases
[ ] Beautification
[ ] Stats D config

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