Logs an error-level message.
The log tag used to identify the source.
The message to log.
Optional exception to include in the log output.