logJson: (
message: string | unknown[] | Record<string, unknown>,
) => Promise<void> = jsonLog
Type declaration
- (message: string | unknown[] | Record<string, unknown>): Promise<void>
Parameters
- message: string | unknown[] | Record<string, unknown>
Returns Promise<void>
Logs a message to the console. If the message is an array or an object, it will be stringified and colorized before being logged. Otherwise, the message will be logged as is.