Skip to content

Debug level is not showing in console #111

@asasine

Description

@asasine

As the title states, calls to log.debug do not print results to the console. The following script index.js was run with node index.js:

var log = require('loglevel');

log.setLevel(log.levels.TRACE);

log.error('error');
log.warn('warn')
log.info('info');
log.debug('debug');
log.trace('trace');

and the following was displayed on the console:

error
warn
info
Trace: trace
    at Object.<anonymous> (/some/random/directory/index.js:9:5)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Function.Module.runMain (module.js:605:10)
    at startup (bootstrap_node.js:158:16)
    at bootstrap_node.js:575:3

As the output shows, the DEBUG level is skipped.

I am using loglevel v1.4.1 with Node.js 8.2.1 and npm 5.3.0 on macOS 10.12.6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions