log4-nodejs

3.1.1 • Public • Published

*nix build status Windows build status Tests coverage Transpilation status npm version

log4-nodejs

log4 log writer for typical Node.js processes

  • 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)
  • 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:

require("log4-nodejs")();

Tests

$ npm test

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.1.169latest

Version History

VersionDownloads (Last 7 Days)Published
3.1.169
3.1.00
3.0.00
2.3.10
2.3.00
2.2.00
2.1.10
2.1.00
2.0.00
1.0.00

Package Sidebar

Install

npm i log4-nodejs

Weekly Downloads

69

Version

3.1.1

License

ISC

Unpacked Size

32.5 kB

Total Files

19

Last publish

Collaborators

  • medikoo