mini-dlpu-v3/miniprogram/app.ts

37 lines
1.1 KiB
TypeScript

import { Logger, LevelLogLabel } from "./logger/index";
import { Level } from "./utils/LogLabel";
App<IAppOption>({
/**
* 全局数据
*/
globalData: {},
/**
* 小程序加载时
*/
onLaunch() {
console.log(Logger.l({val:"hh"},
LevelLogLabel.FatalLabel,LevelLogLabel.ErrorLabel,LevelLogLabel.WarnLabel,
LevelLogLabel.InfoLabel,LevelLogLabel.DebugLabel,LevelLogLabel.TraceLabel
));
console.log(Logger.m(
[LevelLogLabel.FatalLabel,LevelLogLabel.ErrorLabel,LevelLogLabel.WarnLabel,
LevelLogLabel.InfoLabel,LevelLogLabel.DebugLabel,LevelLogLabel.TraceLabel], {val:"hh"}, "hh"
));
console.log(Logger.ll({val:"hh"},
LevelLogLabel.FatalLabel,LevelLogLabel.ErrorLabel,LevelLogLabel.WarnLabel,
LevelLogLabel.InfoLabel,LevelLogLabel.DebugLabel,LevelLogLabel.TraceLabel
));
console.log(Logger.lm(
[LevelLogLabel.FatalLabel,LevelLogLabel.ErrorLabel,LevelLogLabel.WarnLabel,
LevelLogLabel.InfoLabel,LevelLogLabel.DebugLabel,LevelLogLabel.TraceLabel], {val:"hh"}, "hh"
));
}
})