JSPM

vite-logging-patcher

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 131
  • Score
    100M100P100Q10011F
  • License ISC

JSON logging patcher for Next.js

Package Exports

  • vite-logging-patcher
  • vite-logging-patcher/index.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 (vite-logging-patcher) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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

next-logging-patcher

next-logging-patcher 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)
  • 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.

Usage

At beginning of main module of your program invoke:

require("next-logging-patcher")();

Tests

$ npm test