import hilog from '@ohos.hilog'
/**
* 日志工具类
*/
class LogUtils {
private domain: number = 0xFF00
private format: string = '%{public}s, %{public}s'
private tag:string="Harmony"
debug(...args: any[]): void {
hilog.debug(this.domain, this.tag, this.format, args)
}
info(...args: any[]): void {
hilog.debug(this.domain, this.tag, this.format, args)
}
warn(...args: any[]): void {
hilog.debug(this.domain, this.tag, this.format, args)
}
error(...args: any[]): void {
hilog.debug(this.domain, this.tag, this.format, args)
}
}
export default new LogUtils()
Harmony日志工具类
猜你喜欢
转载自blog.csdn.net/xiaopihair123/article/details/132622497
今日推荐
周排行