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

    12.1.3 • Public • Published

    nightingale-debug

    Nightingale debug

    Install

    npm install --save nightingale-debug

    Used by:

    Usage with nodejs

    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
    

    Usage with browser

    with localStorage

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

    with query, in the url

    ?DEBUG='*'; // debug everything
    ?DEBUG=app // debug for logger with key 'app'
    ?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
    

    Keywords

    Install

    npm i nightingale-debug

    DownloadsWeekly Downloads

    110

    Version

    12.1.3

    License

    ISC

    Unpacked Size

    65.2 kB

    Total Files

    23

    Last publish

    Collaborators

    • churpeau