mini-dlpu-v3/miniprogram/app.ts
2021-11-28 15:03:37 +08:00

37 lines
1.1 KiB
TypeScript

import { Logger } from "./logger/Logger";
import { LevelLogLabel } from "./logger/LevelLogLabel";
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"
));
}
})