A quick method to write a message to the Event Log. I use this when I can't use the Logging Application Block or when I just need to a quick message in the event log when debugging an issue. public static void WriteToLog(string message, EventLogEntryType