error(message: string, rest: any): void
Logs an error.
Parameters
message: string
The message to log.
rest: any
The data to log.
error(message: string, rest: any): void
Logs an error.