@kiwicom/debug
v1.10.1
Published
Small utility to mimic the functionality of the [debug](https://github.com/visionmedia/debug) npm module.
Downloads
32
Keywords
Readme
@kiwicom/debug
Small utility to mimic the functionality of the debug npm module.
Usage
import { debug } from '@kiwicom/debug';
const log = debug('my-module:my-class');
log('Log this message and add some `monospaced` text');
To see the logs in your Developer Tools
localStorage.setItem('DEBUG', '*'); // show all messages (including the example above)
localStorage.setItem('DEBUG', 'my-module:*'); // show all messages from `my-module` (including the example above)
localStorage.setItem('DEBUG', 'my-module:my-class'); // show messages only from `my-module:my-class` (including the example above)