* Format arguments for logging, converting objects to JSON strings
(args: unknown[])
| 215 | * Format arguments for logging, converting objects to JSON strings |
| 216 | */ |
| 217 | private formatArgs(args: unknown[]): unknown[] { |
| 218 | return args.map((arg) => { |
| 219 | if (arg === null || arg === undefined) return arg |
| 220 | if (typeof arg === 'object') return formatObject(arg, this.isDev) |
| 221 | return arg |
| 222 | }) |
| 223 | } |
| 224 | |
| 225 | /** |
| 226 | * Internal method to log a message with the specified level |