zhizhi/node_modules/dingtalk-jsapi/lib/log.d.ts

36 lines
1.1 KiB
TypeScript
Raw Normal View History

export declare enum LogLevel {
INFO = "INFO",
WARN = "WARN",
ERROR = "ERROR"
}
interface ILogInfo {
code: number;
category: LogLevel;
message: string;
solution?: string;
}
/**
* Code Message
* 4 Code
* 1xxx =>
* 4xxx => 使
* 5xxx =>
*/
export declare const diagnosticMessageMap: {
config_debug_deprecated: ILogInfo;
dd_config_wrap_deprecated: ILogInfo;
not_support_event_on: ILogInfo;
not_support_event_off: ILogInfo;
repeat_config: ILogInfo;
JsBridge_init_fail: ILogInfo;
auto_bridge_init_error: ILogInfo;
JsBridge_init_fail_dd_config: ILogInfo;
not_support_env: ILogInfo;
call_api_support_platform_error: ILogInfo;
call_api_config_platform_error: ILogInfo;
call_api_on_before_error: ILogInfo;
call_api_on_after_error: ILogInfo;
};
export declare const formatLog: (diagnosticMessage: ILogInfo, ...args: string[]) => string;
export {};