Console handler for nightingale
npm install --save nightingale nightingale-console
import { configure, levels } from "nightingale";
import { ConsoleHandler } from "nightingale-console";
configure([{ handlers: [new ConsoleHandler(Level.INFO)] }]);
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
Since node 12.12.0, you can use --enable-source-maps
while running node.