🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@heisea/err-log

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@heisea/err-log

错误上报

latest
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

err-log

错误上报

更新记录

v0.0.4

  • 请求方式修改为img方式,解决跨域问题,减小插件体积

v0.0.3

  • 调整上报接口

v0.0.2

  • 优化配置

v0.0.1

  • 错误上报mvp版本

命令

进行开发

npm start

打包出生产版本 commonjs 版本

npm run build:common

打包出生产版本 在html可引入的版本

npm run build:var

发布代码 | major | minor | patch]

npm publish

安装

npm i @heisea/err-log

使用

1、es6引入方式

import ErrLog from '@heisea/err-log'

2、初始化

Vue.use(ErrLog, {
    project: `${process.env.NODE_ENV}-{{projectName}}`,
    api: '/hxEventTracking/fe/log'
});

配置说明

属性名类型说明
projectObject项目名
apiString上报地址

查看日志

http://172.18.30.152:5601/app/kibana#/home
账号:elastic
密码:a1nkWC4f7MISV9zfsBZu

FAQs

Package last updated on 30 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts