Package Exports
- log-node
- log-node/index.js
- log-node/lib/level-prefixes
- log-node/lib/level-prefixes.js
- log-node/lib/resolve-format-parts
- log-node/lib/resolve-format-parts.js
- log-node/lib/writer
- log-node/lib/writer.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (log-node) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
log-node
log writer for typical Node.js processes
- Printf-like message formatting
- Configure log level visbility threshold through
LOG_LEVELenv variable (defaults tonotice) - Extra debug output can be controlled via
LOG_DEBUGenv variable (fallbacks toDEBUGif provided) - Optionally outputs timestamps by log messages, controlled by
LOG_TIMEenv variable - Outputs colored logs if terminal supports it (can overriden through
DEBUG_COLORSenv variable) - Object inspection depth defaults to
4, but can be overriden viaLOG_INSPECT_DEPTH(fallbacks toDEBUG_DEPTHif provided) - Writes to
stderrstream.
Usage
At beginning of main module of your program invoke:
require("log-node")();Tests
$ npm test