hbc-log
v0.0.22
Published
### 发布到npm仓库
Downloads
46
Readme
cclx 日志
发布到npm仓库
npm publish --registry=https://nexus.dyvip.tech/nexus/repository/npm-hbc/
使用方法
// 日志项目 必填
project: string;
// 是否开启 日志打印 优先级高于 level 设置false 都不会打印
enable?: boolean;
// 日志来源
source: 'android' | 'ios' | 'h5' | 'miniapp' | 'pc';
// 日志级别
level?: 'debug' | 'info' | 'warn' | 'error' | 'api';
// 日志基础内容
base?: any,
Logger.init({
project: 'test',
enable: false,
source: 'web',
})