wherr
v1.1.0
Published
Pinpoint your log location.
Readme
Wherr
Simple logging helper.
Usage
You could plug it to console.error like:
const wherr = require('wherr');
console.error('Something weird', wherr());This will output:
Something weird file.js:2:34Or, create your custom error logger.
You'll need to pass abstraction level to wherr this way.
logerr = (...args) => console.error(...args, wherr(1)));And use it like:
logerr('Something weird');Will produce:
Something weird file.js:2:1Combine this with other logging utility like chalk, or pino.
