| 操作 | 旧版本 | 新版本 | d.ts文件 |
| ---- | ------ | ------ | -------- |
|新增|NA|类名:hiSysEvent;
方法or属性:function exportSysEvents(queryArg: QueryArg, rules: QueryRule[]): number;|@ohos.hiSysEvent.d.ts|
|新增|NA|类名:hiSysEvent;
方法or属性:function subscribe(rules: QueryRule[]): number;|@ohos.hiSysEvent.d.ts|
|新增|NA|类名:hiSysEvent;
方法or属性:function unsubscribe(): void;|@ohos.hiSysEvent.d.ts|
|新增|NA|类名:QueryArg;
方法or属性:fromSeq?: number;|@ohos.hiSysEvent.d.ts|
|新增|NA|类名:QueryArg;
方法or属性:toSeq?: number;|@ohos.hiSysEvent.d.ts|
|新增|NA|类名:QueryRule;
方法or属性:condition?: string;|@ohos.hiSysEvent.d.ts|
|新增|NA|类名:logLibrary;
方法or属性:function list(logType: string): LogEntry[];|@ohos.logLibrary.d.ts|
|新增|NA|类名:logLibrary;
方法or属性:function copy(logType: string, logName: string, dest: string): Promise\;|@ohos.logLibrary.d.ts|
|新增|NA|类名:logLibrary;
方法or属性:function copy(logType: string, logName: string, dest: string, callback: AsyncCallback\): void;|@ohos.logLibrary.d.ts|
|新增|NA|类名:logLibrary;
方法or属性:function move(logType: string, logName: string, dest: string): Promise\;|@ohos.logLibrary.d.ts|
|新增|NA|类名:logLibrary;
方法or属性:function move(logType: string, logName: string, dest: string, callback: AsyncCallback\): void;|@ohos.logLibrary.d.ts|
|新增|NA|类名:logLibrary;
方法or属性:function remove(logType: string, logName: string): void;|@ohos.logLibrary.d.ts|
|新增|NA|类名:LogEntry;
方法or属性:name: string;|@ohos.logLibrary.d.ts|
|新增|NA|类名:LogEntry;
方法or属性:mtime: number;|@ohos.logLibrary.d.ts|
|新增|NA|类名:LogEntry;
方法or属性:size: number;|@ohos.logLibrary.d.ts|
|新增(错误码)|类名:hiSysEvent;
方法or属性:function write(info: SysEventInfo, callback: AsyncCallback\): void;
旧版本信息:|类名:hiSysEvent;
方法or属性:function write(info: SysEventInfo, callback: AsyncCallback\): void;
新版本信息:401,11200001,11200002,11200003,11200004,11200051,11200052,11200053,11200054|@ohos.hiSysEvent.d.ts|
|新增(错误码)|类名:hiAppEvent;
方法or属性:function write(info: AppEventInfo, callback: AsyncCallback\): void;
旧版本信息:|类名:hiAppEvent;
方法or属性:function write(info: AppEventInfo, callback: AsyncCallback\): void;
新版本信息:401,11100001,11101001,11101002,11101003,11101004,11101005,11101006|@ohos.hiviewdfx.hiAppEvent.d.ts|
|错误码有变化|类名:hiSysEvent;
方法or属性:function addWatcher(watcher: Watcher): void;
旧版本信息:201,401,11200101,11200102|类名:hiSysEvent;
方法or属性:function addWatcher(watcher: Watcher): void;
新版本信息:201,202,401,11200101,11200102|@ohos.hiSysEvent.d.ts|
|错误码有变化|类名:hiSysEvent;
方法or属性:function removeWatcher(watcher: Watcher): void;
旧版本信息:201,401,11200201|类名:hiSysEvent;
方法or属性:function removeWatcher(watcher: Watcher): void;
新版本信息:201,202,401,11200201|@ohos.hiSysEvent.d.ts|
|错误码有变化|类名:hiSysEvent;
方法or属性:function query(queryArg: QueryArg, rules: QueryRule[], querier: Querier): void;
旧版本信息:201,401,11200301,11200302,11200303,11200304|类名:hiSysEvent;
方法or属性:function query(queryArg: QueryArg, rules: QueryRule[], querier: Querier): void;
新版本信息:201,202,401,11200301,11200302,11200303,11200304|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:hiSysEvent;
方法or属性:function write(info: SysEventInfo, callback: AsyncCallback\): void;
旧版本信息:|类名:hiSysEvent;
方法or属性:function write(info: SysEventInfo, callback: AsyncCallback\): void;
新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:SysEventInfo;
方法or属性:domain: string;
旧版本信息:|类名:SysEventInfo;
方法or属性:domain: string;
新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:WatchRule;
方法or属性:domain: string;
旧版本信息:|类名:WatchRule;
方法or属性:domain: string;
新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:QueryRule;
方法or属性:domain: string;
旧版本信息:|类名:QueryRule;
方法or属性:domain: string;
新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:SysEventInfo;
方法or属性:name: string;
旧版本信息:|类名:SysEventInfo;
方法or属性:name: string;
新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:WatchRule;
方法or属性:name: string;
旧版本信息:|类名:WatchRule;
方法or属性:name: string;
新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:SysEventInfo;
方法or属性:eventType: EventType;
旧版本信息:|类名:SysEventInfo;
方法or属性:eventType: EventType;
新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:SysEventInfo;
方法or属性:params: object;
旧版本信息:|类名:SysEventInfo;
方法or属性:params: object;
新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:WatchRule;
方法or属性:tag: string;
旧版本信息:|类名:WatchRule;
方法or属性:tag: string;
新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:WatchRule;
方法or属性:ruleType: RuleType;
旧版本信息:|类名:WatchRule;
方法or属性:ruleType: RuleType;
新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:Watcher;
方法or属性:rules: WatchRule[];
旧版本信息:|类名:Watcher;
方法or属性:rules: WatchRule[];
新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:QueryArg;
方法or属性:beginTime: number;
旧版本信息:|类名:QueryArg;
方法or属性:beginTime: number;
新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:QueryArg;
方法or属性:endTime: number;
旧版本信息:|类名:QueryArg;
方法or属性:endTime: number;
新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:QueryArg;
方法or属性:maxEvents: number;
旧版本信息:|类名:QueryArg;
方法or属性:maxEvents: number;
新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|访问级别有变化|类名:QueryRule;
方法or属性:names: string[];
旧版本信息:|类名:QueryRule;
方法or属性:names: string[];
新版本信息:systemapi|@ohos.hiSysEvent.d.ts|
|type有变化|类名:SysEventInfo;
方法or属性:domain: string;
旧版本信息:|类名:SysEventInfo;
方法or属性:domain: string;
新版本信息:string|@ohos.hiSysEvent.d.ts|
|type有变化|类名:WatchRule;
方法or属性:domain: string;
旧版本信息:|类名:WatchRule;
方法or属性:domain: string;
新版本信息:string|@ohos.hiSysEvent.d.ts|
|type有变化|类名:QueryRule;
方法or属性:domain: string;
旧版本信息:|类名:QueryRule;
方法or属性:domain: string;
新版本信息:string|@ohos.hiSysEvent.d.ts|
|type有变化|类名:SysEventInfo;
方法or属性:name: string;
旧版本信息:|类名:SysEventInfo;
方法or属性:name: string;
新版本信息:string|@ohos.hiSysEvent.d.ts|
|type有变化|类名:WatchRule;
方法or属性:name: string;
旧版本信息:|类名:WatchRule;
方法or属性:name: string;
新版本信息:string|@ohos.hiSysEvent.d.ts|
|type有变化|类名:SysEventInfo;
方法or属性:eventType: EventType;
旧版本信息:|类名:SysEventInfo;
方法or属性:eventType: EventType;
新版本信息:EventType|@ohos.hiSysEvent.d.ts|
|type有变化|类名:SysEventInfo;
方法or属性:params: object;
旧版本信息:|类名:SysEventInfo;
方法or属性:params: object;
新版本信息:object|@ohos.hiSysEvent.d.ts|
|type有变化|类名:WatchRule;
方法or属性:tag: string;
旧版本信息:|类名:WatchRule;
方法or属性:tag: string;
新版本信息:string|@ohos.hiSysEvent.d.ts|
|type有变化|类名:WatchRule;
方法or属性:ruleType: RuleType;
旧版本信息:|类名:WatchRule;
方法or属性:ruleType: RuleType;
新版本信息:RuleType|@ohos.hiSysEvent.d.ts|
|type有变化|类名:QueryArg;
方法or属性:beginTime: number;
旧版本信息:|类名:QueryArg;
方法or属性:beginTime: number;
新版本信息:number|@ohos.hiSysEvent.d.ts|
|type有变化|类名:QueryArg;
方法or属性:endTime: number;
旧版本信息:|类名:QueryArg;
方法or属性:endTime: number;
新版本信息:number|@ohos.hiSysEvent.d.ts|
|type有变化|类名:QueryArg;
方法or属性:maxEvents: number;
旧版本信息:|类名:QueryArg;
方法or属性:maxEvents: number;
新版本信息:number|@ohos.hiSysEvent.d.ts|
|type有变化|类名:QueryRule;
方法or属性:names: string[];
旧版本信息:|类名:QueryRule;
方法or属性:names: string[];
新版本信息:string[]|@ohos.hiSysEvent.d.ts|
|type有变化|类名:HiTraceId;
方法or属性:chainId: bigint;
旧版本信息:|类名:HiTraceId;
方法or属性:chainId: bigint;
新版本信息:bigint|@ohos.hiTraceChain.d.ts|
|type有变化|类名:HiTraceId;
方法or属性:spanId?: number;
旧版本信息:|类名:HiTraceId;
方法or属性:spanId?: number;
新版本信息:?number|@ohos.hiTraceChain.d.ts|
|type有变化|类名:HiTraceId;
方法or属性:parentSpanId?: number;
旧版本信息:|类名:HiTraceId;
方法or属性:parentSpanId?: number;
新版本信息:?number|@ohos.hiTraceChain.d.ts|
|type有变化|类名:HiTraceId;
方法or属性:flags?: number;
旧版本信息:|类名:HiTraceId;
方法or属性:flags?: number;
新版本信息:?number|@ohos.hiTraceChain.d.ts|
|跨平台能力有变化|类名:hilog;
方法or属性:declare hilog
旧版本信息:|类名:hilog;
方法or属性:declare hilog
新版本信息:crossplatform|@ohos.hilog.d.ts|
|跨平台能力有变化|类名:hilog;
方法or属性:function debug(domain: number, tag: string, format: string, ...args: any[]): void;
旧版本信息:|类名:hilog;
方法or属性:function debug(domain: number, tag: string, format: string, ...args: any[]): void;
新版本信息:crossplatform|@ohos.hilog.d.ts|
|跨平台能力有变化|类名:hilog;
方法or属性:function info(domain: number, tag: string, format: string, ...args: any[]): void;
旧版本信息:|类名:hilog;
方法or属性:function info(domain: number, tag: string, format: string, ...args: any[]): void;
新版本信息:crossplatform|@ohos.hilog.d.ts|
|跨平台能力有变化|类名:hilog;
方法or属性:function warn(domain: number, tag: string, format: string, ...args: any[]): void;
旧版本信息:|类名:hilog;
方法or属性:function warn(domain: number, tag: string, format: string, ...args: any[]): void;
新版本信息:crossplatform|@ohos.hilog.d.ts|
|跨平台能力有变化|类名:hilog;
方法or属性:function error(domain: number, tag: string, format: string, ...args: any[]): void;
旧版本信息:|类名:hilog;
方法or属性:function error(domain: number, tag: string, format: string, ...args: any[]): void;
新版本信息:crossplatform|@ohos.hilog.d.ts|
|跨平台能力有变化|类名:hilog;
方法or属性:function fatal(domain: number, tag: string, format: string, ...args: any[]): void;
旧版本信息:|类名:hilog;
方法or属性:function fatal(domain: number, tag: string, format: string, ...args: any[]): void;
新版本信息:crossplatform|@ohos.hilog.d.ts|
|跨平台能力有变化|类名:LogLevel;
方法or属性:enum LogLevel
旧版本信息:|类名:LogLevel;
方法or属性:enum LogLevel
新版本信息:crossplatform|@ohos.hilog.d.ts|
|跨平台能力有变化|类名:LogLevel;
方法or属性:DEBUG = 3
旧版本信息:|类名:LogLevel;
方法or属性:DEBUG = 3
新版本信息:crossplatform|@ohos.hilog.d.ts|
|跨平台能力有变化|类名:LogLevel;
方法or属性:INFO = 4
旧版本信息:|类名:LogLevel;
方法or属性:INFO = 4
新版本信息:crossplatform|@ohos.hilog.d.ts|
|跨平台能力有变化|类名:LogLevel;
方法or属性:WARN = 5
旧版本信息:|类名:LogLevel;
方法or属性:WARN = 5
新版本信息:crossplatform|@ohos.hilog.d.ts|
|跨平台能力有变化|类名:LogLevel;
方法or属性:ERROR = 6
旧版本信息:|类名:LogLevel;
方法or属性:ERROR = 6
新版本信息:crossplatform|@ohos.hilog.d.ts|
|跨平台能力有变化|类名:LogLevel;
方法or属性:FATAL = 7
旧版本信息:|类名:LogLevel;
方法or属性:FATAL = 7
新版本信息:crossplatform|@ohos.hilog.d.ts|