@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

7

Version

1.1.0

License

MIT

Unpacked Size

66.4 kB

Total Files

10

Last publish

Collaborators

  • xuliangmost
  • hanyefeng
  • lwwshare
  • remmurd1
  • runrunr
  • devmsg
  • hongweihu
  • iuwoo
  • ykboluo
  • yqg-owner
  • yulodl
  • center620
  • guxiaodai
  • northseacoder
  • zzj5470816
  • yyh_
  • szll
  • zhayoyang