From af107612e4d405e47df652b75fd6e95946318de3 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Mon, 25 Nov 2024 17:42:14 +0800 Subject: [PATCH] =?utf8?q?=E9=AA=8C=E8=AF=81=E7=A6=BB=E7=BA=BF=E6=97=A5?= =?utf8?q?=E5=BF=97=E4=BF=9D=E5=AD=98=E9=97=AE=E9=A2=98=201.=E5=9C=A8?= =?utf8?q?=E5=AF=B9=E5=BA=94=E7=9B=AE=E5=BD=95CMakeLists=E6=B7=BB=E5=8A=A0?= =?utf8?q?=EF=BC=9A=20set(MODULE=5FNAME=20"app")=20set(AUTO=5FDEF=5FFILE?= =?utf8?q?=5FID=20TRUE)=202.DIAG=E6=97=A5=E5=BF=97=E6=97=A5=E5=BF=97?= =?utf8?q?=E6=89=93=E5=8D=B0=E5=AF=B9=E5=BA=94=E6=96=87=E4=BB=B6=E5=8A=A0?= =?utf8?q?=E4=B8=8A=E5=85=B3=E9=94=AE=E6=89=93=E5=8D=B0=E5=8D=B3=E5=8F=AF?= =?utf8?q?=20=E6=B3=A8=E6=84=8F=E7=9B=AE=E5=89=8D=E5=8F=AA=E5=BC=80?= =?utf8?q?=E6=94=BEerror=E5=92=8Cwarning=E7=BA=A7=E5=88=AB=E7=9A=84?= =?utf8?q?=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../application/wearable/service/msg_center/CMakeLists.txt | 2 ++ .../debug_output_notification/debug_output_notification.cpp | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/code/sdk/application/wearable/service/msg_center/CMakeLists.txt b/code/sdk/application/wearable/service/msg_center/CMakeLists.txt index 26c5bcb67..b477a2fa7 100644 --- a/code/sdk/application/wearable/service/msg_center/CMakeLists.txt +++ b/code/sdk/application/wearable/service/msg_center/CMakeLists.txt @@ -1,4 +1,6 @@ set(COMPONENT_NAME "msg_center") +set(MODULE_NAME "app") +set(AUTO_DEF_FILE_ID TRUE) set(PUBLIC_HEADER ${CMAKE_CURRENT_SOURCE_DIR}/include diff --git a/code/sdk/application/wearable/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp b/code/sdk/application/wearable/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp index 13ffba3d5..2f3eb3706 100644 --- a/code/sdk/application/wearable/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp +++ b/code/sdk/application/wearable/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp @@ -58,6 +58,7 @@ #include #include "displaybrightness/include/DisplayBrightnessModel.h" #include "ppg_service.h" +#include "diag_log.h" namespace OHOS { /**************************************************************************************************** */ @@ -822,7 +823,10 @@ namespace OHOS break; case 17: str = get_offline_log_status(); - if (toggleButtonOffline) { + uapi_diag_info_log(0, "test out info log. value = %d", 1); + uapi_diag_error_log(0, "test out error log. a = %d, b = %d\r\n", 3, 4); + uapi_diag_warning_log(0, "test out warning log. a = %d, b = %d c= 0x%x",3, 4, 5); + if (toggleButtonOffline) { if (toggleButtonOffline->IsVisible() == false) { toggleButtonOffline->SetVisible(true); toggleButtonOffline->SetViewId("offline_log_switch"); -- 2.17.1