public static final HiLogLabel HI_LOG_LABEL = new HiLogLabel(HiLog.LOG_APP, 0X00101, "GJW");
@Override
public void onStart(Intent intent) {
super.onStart(intent);
super.setUIContent(ResourceTable.Layout_ability_demo);
//private 是指打印的这个参数只有开发人员可见,public是指打印的这个参数所有人可见
HiLog.info(HI_LOG_LABEL, "Failed to visit %{private}s, reason:%{public}d.", "url", "errno");
HiLog.info(HI_LOG_LABEL, "onStart方法被调用");
}
Harmony 打印日志
最新推荐文章于 2024-09-13 07:51:36 发布