Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/317482454/errorEruda
基于ERUDA开发调试发布,错误监控上报,用户问题定位 BASED ON ERUDA DEVELOPMENT AND DEBUGGING, FAULT MONITORING REPORT, THE USER LOCATION PROBLEM.
https://github.com/317482454/errorEruda
Last synced: 3 months ago
JSON representation
基于ERUDA开发调试发布,错误监控上报,用户问题定位 BASED ON ERUDA DEVELOPMENT AND DEBUGGING, FAULT MONITORING REPORT, THE USER LOCATION PROBLEM.
- Host: GitHub
- URL: https://github.com/317482454/errorEruda
- Owner: 317482454
- License: apache-2.0
- Created: 2017-06-13T09:49:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-08-30T10:49:39.000Z (about 3 years ago)
- Last Synced: 2024-07-07T06:24:10.586Z (4 months ago)
- Language: JavaScript
- Homepage: http://jqvue.com/demo/errorEruda/index.html
- Size: 79.1 KB
- Stars: 15
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-star - errorEruda
README
## error_eruda
1kb(gzip)代码搞定开发调试发布,错误监控上报,用户问题定位。- 支持错误监控和上报
- 支持 Eruda错误展示
- 支持开发url拉起Eruda
- 支持img[src],script[src],link[href]请求链接错误监控
- 支持函数错误捕获
- 支持XHR请求监控
- 支持错误浏览器版本号上传## 安装
npm i error_eruda -save
注意:监控请求链接需要在最头部申明import errorEruda from 'error_eruda'
## 使用方法errorEruda.config({
jsUrl: '//cdn.jsdelivr.net/eruda/1.2.2/eruda.min.js',//eruda地址
repUrl: "http://127.0.0.1:3000/",//错误上报地址
repMsg: 'test',//错误上报msg前缀,一般用于标识业务类型
entry: "#app"
})`
eruda使用cdn,当然也支持下载到本地使用jsUrl: '/eruda/1.2.2/eruda.min.js',//eruda地址
传输参数:
error:错误信息
repMsg:收集系统标识
browser:浏览器版本号
type:错误类型(script,link,img,http(XHR请求),TypeError)
httpState:状态码(XHR独有)![image](./demo.png)
## url启动errorEruda
url里带上errorEruda=show 就能显示Console面板。如:http://jqvue.com/demo/errorEruda/index.html?errorEruda=show`