Node.js log generator for log engine
npm install log-node[![Build status][build-image]][build-url]
[![Tests coverage][cov-image]][cov-url]
[![npm version][npm-image]][npm-url]
- Printf-like message formatting
- Configure log level visbility threshold through LOG_LEVEL env variable (defaults to notice)
- Extra debug output can be controlled via LOG_DEBUG env variable (fallbacks to DEBUG if provided)
- Optionally outputs timestamps by log messages, controlled by 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.
At beginning of main module of your program invoke:
``javascript``
require("log-node")();
$ 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