public class LogUtil {
private static final int DOMAIN = 0x001;
public static void info(String 标签,String 格式,Object...objects){HiLogLabel logLabel = new HiLogLabel(HiLog.LOG_APP,DOMAIN,tag);HiLog.info(logLabel,format,objects);
}
public static void debug(String 标签,String 格式,Object...objects){HiLogLabel logLabel = new HiLogLabel(HiLog.LOG_APP,DOMAIN,tag);HiLog.debug(logLabel,格式,对象);
}
public static void error(String tag, String format, Object...objects){HiLogLabel logLabel = new HiLogLabel(HiLog.LOG_APP,DOMAIN,tag);HiLog.error(logLabel,格式,对象);
}
public static void warn(String 标签,String 格式,Object...objects){HiLogLabel logLabel = new HiLogLabel(HiLog.LOG_APP,DOMAIN,tag);HiLog.warn(日志标签,格式,对象);}public static void fatal(String 标签,String 格式,Object...objects){HiLogLabel logLabel = new HiLogLabel(HiLog.LOG_APP,DOMAIN,tag);HiLog.fatal(日志标签,格式,对象);
}
}
直接导入使用
相关推荐
7912
0
三元桥的水冰兔
7289
0
鸿蒙小助手
7676
0
鸿蒙小助手
8018
0宋你一朵小红花
我还没有写个人简介......
帖子
提问
粉丝
华为鸿蒙 HarmonyOS 6.0.0.108 SP2 Developer 版本新增 9 套桌面图标
2025-10-20 23:17:16 发布注意!华为开启鸿蒙6.0系统推送,稳定性提升
2025-10-14 15:10:36 发布