@abcnews/err
v1.0.3
Published
Light weight error reporting module which wraps ABC News built in logging.
Downloads
18
Readme
err
A simple wrapper for logging errors on the ABC News site.
const errorLogger = require('@abcnews/err')('your project tag');
try {
// some code which throws
} catch(e) {
errorLogger(e);
}
// Or
Promise.reject('Meltdown').catch(errorLogger);