Console handler for nightingale


Keywords
nightingale, nightingale-handler
License
ISC
Install
npm install nightingale-console@2.5.1

Contributors

Christophe Hurpeau


See all contributors


Documentation

nightingale-console NPM version

Console handler for nightingale

Dependency ci Status Dependency Status

Install

npm install --save nightingale nightingale-console

Usage

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

configure([
  { handlers: [new ConsoleHandler(levels.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