1.0.8 • Published 8 months ago

mall_log v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

日志sdk

查询页面:http://promotion.elong.com/marketing/front-admin/qa/index.html#/

使用方式:

1.创建实例

const mallLog = new Logger({
    userKey: wx.getStorageSync('mall.userKey'),
    service: 'mas_mall',
    env: consts.Env === 'Prod' ? 'production' : 'development'
})
参数解释
service项目名,可自定义
userkey用户标识,根据项目传对应的用户标识
env暂不支持查询,参数还没加,支持传入development和production
isHttps是否使用https, true/false

2.使用

目前支持info,warn,error三个等级

mallLog.info(msg,metaData)
mallLog.warn(msg,metaData)
mallLog.error(msg,metaData)

mallLog.info(arguments[0].msg, {
	userKey: wx.getStorageSync('mall.userKey'),
	arguments
})
参数解释
msg日志信息
metaData日志元数据,可自定义
1.0.8

8 months ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago