logError()function
logError(reason: unknown): void
| Param | Type | |
|---|---|---|
reason | unknown | 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