From 19171d768ef170d8d77b91ab4c4b7faae0b76f3c Mon Sep 17 00:00:00 2001 From: buzhenwang Date: Fri, 11 Feb 2022 14:23:03 +0800 Subject: [PATCH 1/3] change file name @ohos.hilog.ts -> @ohos.hilog.d.ts Signed-off-by: buzhenwang --- api/{@ohos.hilog.ts => @ohos.hilog.d.ts} | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) rename api/{@ohos.hilog.ts => @ohos.hilog.d.ts} (89%) mode change 100755 => 100644 diff --git a/api/@ohos.hilog.ts b/api/@ohos.hilog.d.ts old mode 100755 new mode 100644 similarity index 89% rename from api/@ohos.hilog.ts rename to api/@ohos.hilog.d.ts index 75f30d6ea7..3f29fc67c2 --- a/api/@ohos.hilog.ts +++ b/api/@ohos.hilog.d.ts @@ -16,9 +16,8 @@ /** * Provides interfaces to generate system logs. * -* @devices tv, phone, tablet, wearable, car * @since 7 -* @Syscap SystemCapability.HiviewDFX +* @Syscap SystemCapability.HiviewDFX.HiLog */ declare namespace hilog { @@ -29,8 +28,8 @@ declare namespace hilog { * @param tag Identifies the log tag. * @param format Indicates the log format string. * @param args Indicates the log parameters. - * @devices tv, phone, tablet, wearable, car * @since 7 + * @Syscap SystemCapability.HiviewDFX.HiLog */ function debug(domain: number, tag: string, format: string, ...args: any[]) : void; /** @@ -40,8 +39,8 @@ declare namespace hilog { * @param tag Identifies the log tag. * @param format Indicates the log format string. * @param args Indicates the log parameters. - * @devices tv, phone, tablet, wearable, car * @since 7 + * @Syscap SystemCapability.HiviewDFX.HiLog */ function info(domain: number, tag: string, format: string, ...args: any[]) : void; /** @@ -51,8 +50,8 @@ declare namespace hilog { * @param tag Identifies the log tag. * @param format Indicates the log format string. * @param args Indicates the log parameters. - * @devices tv, phone, tablet, wearable, car * @since 7 + * @Syscap SystemCapability.HiviewDFX.HiLog */ function warn(domain: number, tag: string, format: string, ...args: any[]) : void; /** @@ -62,8 +61,8 @@ declare namespace hilog { * @param tag Identifies the log tag. * @param format Indicates the log format string. * @param args Indicates the log parameters. - * @devices tv, phone, tablet, wearable, car * @since 7 + * @Syscap SystemCapability.HiviewDFX.HiLog */ function error(domain: number, tag: string, format: string, ...args: any[]) : void; /** @@ -73,8 +72,8 @@ declare namespace hilog { * @param tag Identifies the log tag. * @param format Indicates the log format string. * @param args Indicates the log parameters. - * @devices tv, phone, tablet, wearable, car * @since 7 + * @Syscap SystemCapability.HiviewDFX.HiLog */ function fatal(domain: number, tag: string, format: string, ...args: any[]) : void; /** @@ -83,8 +82,8 @@ declare namespace hilog { * @param domain Indicates the service domain, which is a hexadecimal integer ranging from 0x0 to 0xFFFFF * @param tag Identifies the log tag. * @param level log level - * @devices tv, phone, tablet, wearable, car * @since 7 + * @Syscap SystemCapability.HiviewDFX.HiLog */ function isLoggable(domain: number, tag: string, level: LogLevel) : boolean; /** -- Gitee From 68d33778b5b2dc38932140d8bc70c7ddb7200cf9 Mon Sep 17 00:00:00 2001 From: buzhenwang Date: Fri, 11 Feb 2022 14:34:56 +0800 Subject: [PATCH 2/3] push Signed-off-by: buzhenwang --- api/@ohos.hilog.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/@ohos.hilog.d.ts b/api/@ohos.hilog.d.ts index 3f29fc67c2..2d61bb58ee 100644 --- a/api/@ohos.hilog.d.ts +++ b/api/@ohos.hilog.d.ts @@ -88,6 +88,9 @@ declare namespace hilog { function isLoggable(domain: number, tag: string, level: LogLevel) : boolean; /** * Log level define + * + * @since 7 + * @Syscap SystemCapability.HiviewDFX.HiLog */ enum LogLevel { DEBUG = 3, -- Gitee From d38f71fbd14967aaf4b6ea5bf50e251f63e32dca Mon Sep 17 00:00:00 2001 From: buzhenwang Date: Fri, 11 Feb 2022 14:38:27 +0800 Subject: [PATCH 3/3] push Signed-off-by: buzhenwang --- api/@ohos.hilog.d.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/api/@ohos.hilog.d.ts b/api/@ohos.hilog.d.ts index 2d61bb58ee..0ec0879de9 100644 --- a/api/@ohos.hilog.d.ts +++ b/api/@ohos.hilog.d.ts @@ -17,7 +17,7 @@ * Provides interfaces to generate system logs. * * @since 7 -* @Syscap SystemCapability.HiviewDFX.HiLog +* @syscap SystemCapability.HiviewDFX.HiLog */ declare namespace hilog { @@ -29,7 +29,7 @@ declare namespace hilog { * @param format Indicates the log format string. * @param args Indicates the log parameters. * @since 7 - * @Syscap SystemCapability.HiviewDFX.HiLog + * @syscap SystemCapability.HiviewDFX.HiLog */ function debug(domain: number, tag: string, format: string, ...args: any[]) : void; /** @@ -40,7 +40,7 @@ declare namespace hilog { * @param format Indicates the log format string. * @param args Indicates the log parameters. * @since 7 - * @Syscap SystemCapability.HiviewDFX.HiLog + * @syscap SystemCapability.HiviewDFX.HiLog */ function info(domain: number, tag: string, format: string, ...args: any[]) : void; /** @@ -51,7 +51,7 @@ declare namespace hilog { * @param format Indicates the log format string. * @param args Indicates the log parameters. * @since 7 - * @Syscap SystemCapability.HiviewDFX.HiLog + * @syscap SystemCapability.HiviewDFX.HiLog */ function warn(domain: number, tag: string, format: string, ...args: any[]) : void; /** @@ -62,7 +62,7 @@ declare namespace hilog { * @param format Indicates the log format string. * @param args Indicates the log parameters. * @since 7 - * @Syscap SystemCapability.HiviewDFX.HiLog + * @syscap SystemCapability.HiviewDFX.HiLog */ function error(domain: number, tag: string, format: string, ...args: any[]) : void; /** @@ -73,7 +73,7 @@ declare namespace hilog { * @param format Indicates the log format string. * @param args Indicates the log parameters. * @since 7 - * @Syscap SystemCapability.HiviewDFX.HiLog + * @syscap SystemCapability.HiviewDFX.HiLog */ function fatal(domain: number, tag: string, format: string, ...args: any[]) : void; /** @@ -83,14 +83,14 @@ declare namespace hilog { * @param tag Identifies the log tag. * @param level log level * @since 7 - * @Syscap SystemCapability.HiviewDFX.HiLog + * @syscap SystemCapability.HiviewDFX.HiLog */ function isLoggable(domain: number, tag: string, level: LogLevel) : boolean; /** * Log level define * * @since 7 - * @Syscap SystemCapability.HiviewDFX.HiLog + * @syscap SystemCapability.HiviewDFX.HiLog */ enum LogLevel { DEBUG = 3, -- Gitee