Skip to content

DamonHu/dLog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dLog

微信小程序日志封装,根据console封装。基础库版本不低于2.21.3

使用

1、引入dLog

const dLog = require('../utils/dLog.js')

2、调用dLog

dLog.netLog("https://www.hudongdong.com", {"userID": 0}, {"code": 0, "msg": "test"})
dLog.log("普通日志")
dLog.warn("warn", "loggg")
dLog.error({"reason": "吃吃吃"})
dLog.color("hello world")

更多配置

微信支持实时日志,有助于在线查询日志,可以设置dLog.js文件中的realtimeLogEnable设置是否开启

const logOutput = true    //是否输出
const realtimeLogEnable = true        //开启实时日志

About

微信小程序日志封装

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published