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 75f30d6ea78dc4aca2fffd376ad9b9e5e96c9fe9..0ec0879de98ce3c4eaaed2fe1c4e33540ada572e --- 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,12 +82,15 @@ 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; /** * Log level define + * + * @since 7 + * @syscap SystemCapability.HiviewDFX.HiLog */ enum LogLevel { DEBUG = 3,