From bc3824e24eb21ee70786dea175c128e5914ab4f7 Mon Sep 17 00:00:00 2001 From: 185******37 Date: Fri, 26 Jan 2024 07:16:34 +0000 Subject: [PATCH] =?UTF-8?q?IR=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 185******37 --- .../application-models/common-event-remove-sticky.md | 4 ++-- .../application-models/common-event-static-subscription.md | 2 +- .../application-models/common-event-unsubscription.md | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/zh-cn/application-dev/application-models/common-event-remove-sticky.md b/zh-cn/application-dev/application-models/common-event-remove-sticky.md index 58a4ee15c6b..7238c9a6d23 100644 --- a/zh-cn/application-dev/application-models/common-event-remove-sticky.md +++ b/zh-cn/application-dev/application-models/common-event-remove-sticky.md @@ -35,11 +35,11 @@ commonEventManager.removeStickyCommonEvent('usual.event.SCREEN_OFF', (err: Base.BusinessError) => { // sticky_event粘性公共事件名 if (err) { - Logger.error(TAG, `Failed to remove sticky common event. Code is ${err.code}, message is ${err.message}`); + console.error(TAG, `Failed to remove sticky common event. Code is ${err.code}, message is ${err.message}`); return; } ... - Logger.info(TAG, `Succeeded in removeing sticky event.`); + console.info(TAG, `Succeeded in removeing sticky event.`); }); ``` diff --git a/zh-cn/application-dev/application-models/common-event-static-subscription.md b/zh-cn/application-dev/application-models/common-event-static-subscription.md index 2fcb11c0c3a..85f6cc2f31b 100644 --- a/zh-cn/application-dev/application-models/common-event-static-subscription.md +++ b/zh-cn/application-dev/application-models/common-event-static-subscription.md @@ -30,7 +30,7 @@ export default class StaticSubscriber extends StaticSubscriberExtensionAbility { onReceiveEvent(event: commonEventManager.CommonEventData): void { - Logger.info(TAG, 'onReceiveEvent, event: ' + event.event); + console.info(TAG, 'onReceiveEvent, event: ' + event.event); ... } } diff --git a/zh-cn/application-dev/application-models/common-event-unsubscription.md b/zh-cn/application-dev/application-models/common-event-unsubscription.md index d52895a66c3..af2b877eda8 100644 --- a/zh-cn/application-dev/application-models/common-event-unsubscription.md +++ b/zh-cn/application-dev/application-models/common-event-unsubscription.md @@ -32,12 +32,12 @@ if (this.subscriber !== null) { commonEventManager.unsubscribe(this.subscriber, (err: Base.BusinessError) => { if (err) { - Logger.error(TAG, `UnsubscribeCallBack err = ${JSON.stringify(err)}`); + console.error(TAG, `UnsubscribeCallBack err = ${JSON.stringify(err)}`); } else { promptAction.showToast({ message: $r('app.string.unsubscribe_success_toast') }); - Logger.info(TAG, `Unsubscribe success`); + console.info(TAG, `Unsubscribe success`); this.subscriber = null; } }) -- Gitee