diff --git a/api/@ohos.hilog.d.ts b/api/@ohos.hilog.d.ts index 998320202635cd938c7c1ada1878b9f4169ef097..e41fa2654e5c71d3814f1b7f0cd006f6d3adcea4 100644 --- a/api/@ohos.hilog.d.ts +++ b/api/@ohos.hilog.d.ts @@ -85,7 +85,7 @@ declare namespace hilog { /** * Outputs debug-level logs. * - * @param { number } domain Indicates the service domain, which is a hexadecimal integer ranging from 0x0 to 0xFFFF + * @param { int } domain Indicates the service domain, which is a hexadecimal integer ranging from 0x0 to 0xFFFF * if the value exceeds the range, logs cannot be printed. * @param { string } tag Identifies the log tag, length cannot exceed 32 bytes, the excess part will be truncated. * @param { string } format Indicates the log format string. @@ -96,7 +96,7 @@ declare namespace hilog { * @since 20 * @arkts 1.1&1.2 */ - function debug(domain: number, tag: string, format: string, ...args: (Object | undefined | null)[]): void; + function debug(domain: int, tag: string, format: string, ...args: (Object | undefined | null)[]): void; /** * Outputs info-level logs. @@ -137,7 +137,7 @@ declare namespace hilog { /** * Outputs info-level logs. * - * @param { number } domain Indicates the service domain, which is a hexadecimal integer ranging from 0x0 to 0xFFFF + * @param { int } domain Indicates the service domain, which is a hexadecimal integer ranging from 0x0 to 0xFFFF * if the value exceeds the range, logs cannot be printed. * @param { string } tag Identifies the log tag, length cannot exceed 32 bytes, the excess part will be truncated. * @param { string } format Indicates the log format string. @@ -148,7 +148,7 @@ declare namespace hilog { * @since 20 * @arkts 1.1&1.2 */ - function info(domain: number, tag: string, format: string, ...args: (Object | undefined | null)[]): void; + function info(domain: int, tag: string, format: string, ...args: (Object | undefined | null)[]): void; /** * Outputs warning-level logs. @@ -189,7 +189,7 @@ declare namespace hilog { /** * Outputs warning-level logs. * - * @param { number } domain Indicates the service domain, which is a hexadecimal integer ranging from 0x0 to 0xFFFF + * @param { int } domain Indicates the service domain, which is a hexadecimal integer ranging from 0x0 to 0xFFFF * if the value exceeds the range, logs cannot be printed. * @param { string } tag Identifies the log tag, length cannot exceed 32 bytes, the excess part will be truncated. * @param { string } format Indicates the log format string. @@ -200,7 +200,7 @@ declare namespace hilog { * @since 20 * @arkts 1.1&1.2 */ - function warn(domain: number, tag: string, format: string, ...args: (Object | undefined | null)[]): void; + function warn(domain: int, tag: string, format: string, ...args: (Object | undefined | null)[]): void; /** * Outputs error-level logs. @@ -241,7 +241,7 @@ declare namespace hilog { /** * Outputs error-level logs. * - * @param { number } domain Indicates the service domain, which is a hexadecimal integer ranging from 0x0 to 0xFFFF + * @param { int } domain Indicates the service domain, which is a hexadecimal integer ranging from 0x0 to 0xFFFF * if the value exceeds the range, logs cannot be printed. * @param { string } tag Identifies the log tag, length cannot exceed 32 bytes, the excess part will be truncated. * @param { string } format Indicates the log format string. @@ -252,7 +252,7 @@ declare namespace hilog { * @since 20 * @arkts 1.1&1.2 */ - function error(domain: number, tag: string, format: string, ...args: (Object | undefined | null)[]): void; + function error(domain: int, tag: string, format: string, ...args: (Object | undefined | null)[]): void; /** * Outputs fatal-level logs. @@ -293,7 +293,7 @@ declare namespace hilog { /** * Outputs fatal-level logs. * - * @param { number } domain Indicates the service domain, which is a hexadecimal integer ranging from 0x0 to 0xFFFF + * @param { int } domain Indicates the service domain, which is a hexadecimal integer ranging from 0x0 to 0xFFFF * if the value exceeds the range, logs cannot be printed. * @param { string } tag Identifies the log tag, length cannot exceed 32 bytes, the excess part will be truncated. * @param { string } format Indicates the log format string. @@ -304,7 +304,7 @@ declare namespace hilog { * @since 20 * @arkts 1.1&1.2 */ - function fatal(domain: number, tag: string, format: string, ...args: (Object | undefined | null)[]): void; + function fatal(domain: int, tag: string, format: string, ...args: (Object | undefined | null)[]): void; /** * Checks whether logs of the specified tag, and level can be printed. @@ -320,7 +320,7 @@ declare namespace hilog { /** * Checks whether logs of the specified tag, and level can be printed. * - * @param { number } domain Indicates the service domain, which is a hexadecimal integer ranging from 0x0 to 0xFFFF + * @param { int } domain Indicates the service domain, which is a hexadecimal integer ranging from 0x0 to 0xFFFF * if the value exceeds the range, logs cannot be printed. * @param { string } tag Identifies the log tag, length cannot exceed 32 bytes, the excess part will be truncated. * @param { LogLevel } level log level @@ -330,7 +330,7 @@ declare namespace hilog { * @since arkts {'1.1':'11','1.2':'20'} * @arkts 1.1&1.2 */ - function isLoggable(domain: number, tag: string, level: LogLevel): boolean; + function isLoggable(domain: int, tag: string, level: LogLevel): boolean; /** * Sets the lowest log level of the current application process. @@ -360,7 +360,7 @@ declare namespace hilog { /** * Log level define * - * @enum { number } + * @enum { int } * @syscap SystemCapability.HiviewDFX.HiLog * @crossplatform * @atomicservice