@geyj/monitor-sdk
v1.0.5
Published
Monitor Sdk
Downloads
143
Readme
Web 监控 SDK
安装
npm install @geyj/monitor-sdk
引入
import useMonitor from '@geyj/monitor-sdk'
调用
const { report } = useMonitor({
appId: [Your appId],
appName: [Your appName],
appVersion: [Your appVersion],
userId: [Your userId],
userName: [Your userName]
})
report({
type: 'Log',
subType: 'log',
content: JSON.stringify({content:'xxx', message:'xxx'}),
})