@yqg/reporter
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@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);

Readme

Keywords

none

Package Sidebar

Install

npm i @yqg/reporter

Weekly Downloads

4

Version

1.1.0

License

MIT

Unpacked Size

66.4 kB

Total Files

10

Last publish

Collaborators

  • devmsg
  • hongweihu
  • iuwoo
  • ykboluo
  • yqg-owner
  • jxlnljt
  • yulodl
  • center620
  • zhchy
  • guxiaodai
  • northseacoder
  • wenxiujiang
  • zzj5470816
  • lixiaoxue
  • yyh_
  • szll
  • zhayoyang