Write to Event Logs

Wondering how to write something to the event logs in version 9.0