Writes a message to the log.
The log to write to.
The message level.
The log message.
The log message details.
The log message category.
The application log message context.
sink is null (Nothing in Visual Basic).