Log: { create: ((tag) => { [
k:
string]
: ((...args) => void); }); debug: { (...data): void; (message?,
...optionalParams): void; }; error: { (...data): void; (message?,
...optionalParams): void; }; info: { (...data): void; (message?,
...optionalParams): void; }; setLogLevel: (<T>(logfn) => void); warn: { (...data): void; (message?,
...optionalParams): void; }; dump(): Promise<string>; } Type declaration
create: ((tag) => {
[k: string]: ((...args) => void);
})
- (tag): {
[k: string]: ((...args) => void);
} Returns {
[k: string]: ((...args) => void);
}
[k: string]: ((...args) => void)
- (...args): void
Returns void
debug: {
(...data): void;
(message?, ...optionalParams): void;
}
- (...data): void
Returns void
- (message?, ...optionalParams): void
Parameters
Optional
message: anyRest
...optionalParams: any[]
Returns void
error: {
(...data): void;
(message?, ...optionalParams): void;
}
- (...data): void
Returns void
- (message?, ...optionalParams): void
Parameters
Optional
message: anyRest
...optionalParams: any[]
Returns void
info: {
(...data): void;
(message?, ...optionalParams): void;
}
- (...data): void
Returns void
- (message?, ...optionalParams): void
Parameters
Optional
message: anyRest
...optionalParams: any[]
Returns void
setLogLevel: (<T>(logfn) => void)
- <T>(logfn): void
Returns void
warn: {
(...data): void;
(message?, ...optionalParams): void;
}
- (...data): void
Returns void
- (message?, ...optionalParams): void
Parameters
Optional
message: anyRest
...optionalParams: any[]
Returns void
dump:function
- dump(): Promise<string>
Returns Promise<string>
全局日志对象,将日志内容写入 OPFS 临时文件