Writes a message to the error log.
The log to write to.
The log message.
The log message details.
sink is null (Nothing in Visual Basic).