# log-node

> Node.js log generator for log engine

Latest version **8.0.3** (published 2021-12-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install log-node
pnpm add log-node
yarn add log-node
bun add log-node
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 8.0.3 |
| Published | 2021-12-21 |
| First published | 2014-07-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10.0 |
| Dependencies | 8 |
| Unpacked size | 18.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Mariusz Nowak |
| Maintainers | medikoo |
| Keywords | log, log, logger, debug, bunyan, winston |

## Links

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

## Dependencies (8)

- [d](https://npm.io/package/d.md) ^1.0.1
- [type](https://npm.io/package/type.md) ^2.5.0
- [es5-ext](https://npm.io/package/es5-ext.md) ^0.10.53
- [cli-color](https://npm.io/package/cli-color.md) ^2.0.1
- [ansi-regex](https://npm.io/package/ansi-regex.md) ^5.0.1
- [sprintf-kit](https://npm.io/package/sprintf-kit.md) ^2.0.1
- [supports-color](https://npm.io/package/supports-color.md) ^8.1.1
- [cli-sprintf-format](https://npm.io/package/cli-sprintf-format.md) ^1.1.1

## 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
- [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
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 8.0.3 (latest) — 2021-12-21
- 8.0.2 — 2021-10-22
- 8.0.1 — 2021-09-10
- 8.0.0 — 2021-09-02
- 7.0.0 — 2019-04-10
- 6.1.0 — 2019-04-09
- 6.0.1 — 2019-04-08
- 6.0.0 — 2019-04-08
- 5.1.0 — 2019-03-19
- 5.0.0 — 2019-03-19
- 4.0.0 — 2019-03-18
- 3.2.1 — 2018-11-29
- 3.2.0 — 2018-11-29
- 1.5.0 — 2014-07-07

## README

[![Build status][build-image]][build-url]
[![Tests coverage][cov-image]][cov-url]
[![npm version][npm-image]][npm-url]

# log-node

## [log](https://github.com/medikoo/log/) writer for typical [Node.js](https://nodejs.org/) processes

- [Printf-like message formatting](https://github.com/medikoo/log#output-message-formatting)
- Configure log level visbility threshold through [`LOG_LEVEL`](https://github.com/medikoo/log#log_level) env variable (defaults to `notice`)
- Extra debug output can be controlled via [`LOG_DEBUG`](https://github.com/medikoo/log#log_debug) env variable (fallbacks to `DEBUG` if provided)
- Optionally outputs timestamps by log messages, controlled by [`LOG_TIME`](https://github.com/medikoo/log#log_time) env variable
- Outputs colored logs if terminal supports it (can overriden through `DEBUG_COLORS` env variable)
- Object inspection depth defaults to `4`, but can be overriden via `LOG_INSPECT_DEPTH` (fallbacks to `DEBUG_DEPTH` if provided)
- Writes to `stderr` stream.

### Usage

At beginning of main module of your program invoke:

```javascript
require("log-node")();
```

### Tests

    $ npm test

[build-image]: https://github.com/medikoo/log-node/workflows/Integrate/badge.svg
[build-url]: https://github.com/medikoo/log-node/actions?query=workflow%3AIntegrate
[cov-image]: https://img.shields.io/codecov/c/github/medikoo/log-node.svg
[cov-url]: https://codecov.io/gh/medikoo/log-node
[npm-image]: https://img.shields.io/npm/v/log-node.svg
[npm-url]: https://www.npmjs.com/package/log-node

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