@550w-tools/core
Version:
550w-tools 核心库,暴露若干API供应用层调用
13 lines (12 loc) • 375 B
TypeScript
export declare function withTimeLog(func: Function, name?: string): Promise<any>;
export declare class APILogger {
logName: string;
startDate: Date;
endDate: Date;
constructor(logName: string, manualStart?: boolean);
start: () => void;
end: () => void;
log: (...msg: any[]) => void;
error: (...msg: any[]) => void;
}
export default APILogger;