logError()function

logError(reason: unknown): void
ParamType
reasonunknown
The error (or any thrown value) to log. required
Return
void
Nothing.

Log an error to the console.

Examples

logError(new Error("Boom")) // logs to console.error