0.0.6 • Published 6 years ago

vue-error-log v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

vue-error-log

结合sentry,方便捕捉异常并上传

Usage

NPM

$ npm install vue-error-log

Yarn

$ yarn add vue-error-log

Getting Started

We will be using ES2015 in the code samples in the guide.

JavaScript Module

// 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:

<div id="#app">
  <!-- TODO: here the outputs -->
</div>

:copyright: License

MIT

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago