balm-tracking
v0.2.0
Published
Javascript error tracking
Downloads
1
Readme
Balm Tracking
Javascript error tracking
Usage
import balmTracking from 'balm-tracking';
balmTracking({
printErrors: false,
reportEndpoint: '/log', // replace your api,
reportRate: 1.0, // range: [0, 1]
reportThreshold: 1000,
vue: {
app, // Vue app
router // Vue router
}
});
import { saveErrorLog } from 'balm-tracking';
saveErrorLog({
name: 'http',
message: 'request error',
error: 'error stack'
});