🚀 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

错误上报

npmnpm
Version
0.0.2
Version published
Weekly downloads
14
16.67%
Maintainers
1
Weekly downloads
 
Created
Source

err-log

错误上报

更新记录

v0.0.1

  • 错误上报mvp版本

v0.0.2

  • 优化配置

安装

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 22 Mar 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