Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cklwblove/vue-error-log
Combined with sentry, it is convenient to collect the error log on the front end.
https://github.com/cklwblove/vue-error-log
Last synced: about 4 hours ago
JSON representation
Combined with sentry, it is convenient to collect the error log on the front end.
- Host: GitHub
- URL: https://github.com/cklwblove/vue-error-log
- Owner: cklwblove
- License: mit
- Created: 2017-12-04T07:32:04.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-17T05:00:03.000Z (about 2 years ago)
- Last Synced: 2024-10-28T17:13:39.209Z (22 days ago)
- Language: JavaScript
- Size: 262 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vue-error-log
结合sentry,方便捕捉异常并上传## Usage
### NPM
$ npm install vue-error-log
### Yarn
$ yarn add vue-error-log
## Getting Started
> We will be using [ES2015](https://github.com/lukehoban/es6features) in the code samples in the guide.
### JavaScript Module
```javascript
// import Vue and VueErrorLog and then call Vue.use(VueErrorLog).
// import Vue from 'vue'
// import VueErrorLog from 'vue-error-log'
//
// https://docs.sentry.io/quickstart/#pick-a-client-integration
// VueErrorLog({
// dsn: '{PROTOCOL}://{PUBLIC_KEY}:{SECRET_KEY}@{HOST}/{PATH}{PROJECT_ID}',
// release: 'version',
// env: 'development'
// })// TODO: here the example
// Now the app has started!
new Vue({
el: '#app'
})
```Output the following:
```html
```### :copyright: License
[MIT](http://opensource.org/licenses/MIT)