@yqg/reporter
JSNLog based logging library & error reporter.
Install
Using npm:
npm install @yqg/reporter
Using yarn:
yarn add @yqg/reporter
Usage
import YqgReporter, {reportBuilder, setIgnoreError, addWarnExceptionName} from '@yqg/reporter';
setIgnoreError(err => err.isAxiosError); // ignore specified error
addWarnExceptionName('ChunkLoadError'); // downgrade fatal to warn with error name
YqgReporter.log(reportBuild.getWarnLevel(), {}, error); // report error at warn level
YqgReporter.fatalException({}, error);