Hi Francois, and thanks for the response.
Ok, I've figured out most of what I need to do from the documentation ...
except for how to specify the different types of log-entries: Information,
Warning and Error
EventLog does not seem to have an appropriate property.
"Francois Bonin [MVP]" <th*****@gmail.com> wrote in message
news:O2*************@TK2MSFTNGP10.phx.gbl...
No it's not. You need to give a non-null non-empty value to the Source
property of your EventLog object.
"John Grandy" <johnagrandy-at-yahoo-dot-com> wrote in message
news:OL**************@TK2MSFTNGP11.phx.gbl... Is the following the correct code to write to the Application EventLog :
EventLog appLog = new EventLog();
appLog.Source = String.Empty;
appLog.WriteEntry("my message");