now function log In .d.ts: log(...args: any[]): void; the right: log(level:string, ...args: any[]): void;