nightingale-console
TypeScript icon, indicating that this package has built-in type declarations

15.0.0 • Public • Published

nightingale-console

Console handler for nightingale

Install

npm install --save nightingale nightingale-console

Usage

import { configure, levels } from 'nightingale';
import { ConsoleHandler } from 'nightingale-console';

configure([{ handlers: [new ConsoleHandler(Level.INFO)] }]);

Debug

DEBUG=* node .

DEBUG='*'; # debug everything
DEBUG=app # debug for logger with key 'app'
DEBUG=app:* # debug for logger with key 'app' and all its children
DEBUG=app,nightingale # debug for logger with key 'app' and 'nightingale'
DEBUG=/^app/ # debug for logger with key starting with 'app'
DEBUG=/^(app|nightingale$)/ # debug for logger with key starting with 'app' and key 'nightingale'
DEBUG='*,-app'; # debug everything except app
DEBUG='*,-app:*'; # debug everything except app and all its children

Use source maps to display error stack trace

Since node 12.12.0, you can use --enable-source-maps while running node.

error with source maps

Package Sidebar

Install

npm i nightingale-console

Weekly Downloads

138

Version

15.0.0

License

ISC

Unpacked Size

30 kB

Total Files

10

Last publish

Collaborators

  • churpeau