Lines Matching refs:args
6 type LoggerResolver = (level: LogLevel, color: Chalk | null, args: string[]) => void;
8 const CONSOLE_RESOLVER: LoggerResolver = (level: LogLevel, color: Chalk | null, args: string[]) => {
9 return console[level](...(color ? args.map((arg) => color(arg)) : args));
18 verbose(...args: any[]): void {
19 this.resolver('debug', chalk.dim, args);
22 debug(...args: any[]): void {
23 this.resolver('debug', chalk.gray, args);
26 log(...args: any[]): void {
27 this.resolver('log', null, args);
30 success(...args: any[]): void {
31 this.resolver('log', chalk.green, args);
34 info(...args: any[]): void {
35 this.resolver('info', chalk.cyan, args);
38 warn(...args: any[]): void {
39 this.resolver('warn', chalk.yellow.bold, args);
42 error(...args: any[]): void {
43 this.resolver('error', chalk.red.bold, args);
64 super((level, color, args) => {
65 this.batchedLogs.push([level, color, args]);
71 this.batchedLogs.forEach(([level, color, args]) => this.parentResolver(level, color, args));