diff --git a/frameworks/core/common/include/ans_log_wrapper.h b/frameworks/core/common/include/ans_log_wrapper.h index 05a493cd73bb5da06013bd16f8bb56dccf8eac6c..a33785f1ac4882b4ad754d3872bb70a2b128ada0 100644 --- a/frameworks/core/common/include/ans_log_wrapper.h +++ b/frameworks/core/common/include/ans_log_wrapper.h @@ -23,18 +23,18 @@ namespace OHOS { namespace Notification { -#ifndef LOG_DOMAIN -#define LOG_DOMAIN 0xD001800 +#ifndef ANS_LOG_DOMAIN +#define ANS_LOG_DOMAIN 0xD001200 #endif #ifndef ANS_LOG_TAG -#define ANS_LOG_TAG "NOTIFICATION" +#define ANS_LOG_TAG "Ans" #endif enum class AnsLogLevel : uint8_t { DEBUG = 0, INFO, WARN, ERROR, FATAL }; -static constexpr OHOS::HiviewDFX::HiLogLabel ANS_LABEL = {LOG_CORE, LOG_DOMAIN, ANS_LOG_TAG}; -static constexpr OHOS::HiviewDFX::HiLogLabel ANS_REMINDER_LABEL = {LOG_CORE, LOG_DOMAIN, "ANS_REMINDER"}; +static constexpr OHOS::HiviewDFX::HiLogLabel ANS_LABEL = {LOG_CORE, ANS_LOG_DOMAIN, ANS_LOG_TAG}; +static constexpr OHOS::HiviewDFX::HiLogLabel ANS_REMINDER_LABEL = {LOG_CORE, ANS_LOG_DOMAIN, "ANS_REMINDER"}; class AnsLogWrapper { public: diff --git a/frameworks/js/napi/BUILD.gn b/frameworks/js/napi/BUILD.gn index 66e861db56a8214812baa5e35456b872c7e5530c..4e3002c18ccd97c4e20d2d7d7d1e0c428e66df0c 100644 --- a/frameworks/js/napi/BUILD.gn +++ b/frameworks/js/napi/BUILD.gn @@ -32,11 +32,6 @@ config("native_module_config") { if (target_cpu == "arm") { cflags += [ "-DBINDER_IPC_32BIT" ] } - - defines = [ - "ANS_LOG_TAG = \"NOTIFICATION_NAPI\"", - "LOG_DOMAIN = 0xD001800", - ] } ohos_shared_library("notification") { diff --git a/frameworks/js/napi/src/reminder/BUILD.gn b/frameworks/js/napi/src/reminder/BUILD.gn index ce267f591e4212bc7c87e0d6ea8f064ca70b6f8d..e21dd4c06cf6181dab063c3365cb9863b4e210b1 100644 --- a/frameworks/js/napi/src/reminder/BUILD.gn +++ b/frameworks/js/napi/src/reminder/BUILD.gn @@ -24,11 +24,6 @@ config("native_module_config") { if (target_cpu == "arm") { cflags += [ "-DBINDER_IPC_32BIT" ] } - - defines = [ - "APP_LOG_TAG = \"NOTIFICATION_REMINDER\"", - "LOG_DOMAIN = 0xD001800", - ] } ohos_shared_library("reminderagent") { diff --git a/services/ans/BUILD.gn b/services/ans/BUILD.gn index cdf752d7e4c898331b01696c0f6b5b82164c156a..bdc4f587adc1275f78d9f9ea5ab4074a89dfc7ee 100644 --- a/services/ans/BUILD.gn +++ b/services/ans/BUILD.gn @@ -20,10 +20,6 @@ group("ans_targets") { config("public_ans_config") { include_dirs = [ "${services_path}/ans/include" ] - defines = [ - "ANS_LOG_TAG = \"NOTIFICATION_SERVICE\"", - "LOG_DOMAIN = 0xD002200", - ] } ohos_shared_library("libans") { diff --git a/test/common/acts/actsnotificationfuzztest/BUILD.gn b/test/common/acts/actsnotificationfuzztest/BUILD.gn index 2026181f2353c7b92229d1c62cbb52b95a8f8144..4d93e759326112d4b482c1545e46faec57e94348 100644 --- a/test/common/acts/actsnotificationfuzztest/BUILD.gn +++ b/test/common/acts/actsnotificationfuzztest/BUILD.gn @@ -60,10 +60,6 @@ ohos_systemtest("ActsNotificationFuzzTest") { "//utils/native/base:utils", ] - defines = [ - "ANS_LOG_TAG = \"AnsFwkKitsTest\"", - "LOG_DOMAIN = 0xD002200", - ] external_deps = [ "ability_base:base", "ability_base:want", diff --git a/test/resource/ansSTSlotGroupTest/BUILD.gn b/test/resource/ansSTSlotGroupTest/BUILD.gn index a1afa13ed3047ebac2ae83493a68a52e0bc195ac..77f7eb83d519330462f79642c3c37f8b4be231c1 100644 --- a/test/resource/ansSTSlotGroupTest/BUILD.gn +++ b/test/resource/ansSTSlotGroupTest/BUILD.gn @@ -30,11 +30,6 @@ config("ansSTSlotGroupTestConfig") { "${ability_runtime_services_path}/abilitymgr/include", "${inner_api_path}", ] - - defines = [ - "APP_LOG_TAG = \"ansSTSlotGroupTest\"", - "LOG_DOMAIN = 0xD002200", - ] } ohos_shared_library("libraryAnsSTSlotGroupTest") {