I am using the simplest way to write to the event log:
if(!EventLog.SourceExists(...)) {EventLog.CreateEventSource(...);}
EventLog.WriteEntry(...);
From the syntax, WriteEntry should be static, but in the documentation it is not.
I am interested to find out why because this code will be called from different threads and only the static
members of EventLog are thread-safe.