First choose a log source name
Then write a console app that writes an entry using that source name, run the app as an administrator.
After that, you can use EventLog.WriteEntry(SOURCE_NAME, errorMessage,..) to write log messages.
Bruce Ng's software development blog
An archive of solutions of programming problems I have faced in my career
Then write a console app that writes an entry using that source name, run the app as an administrator.
After that, you can use EventLog.WriteEntry(SOURCE_NAME, errorMessage,..) to write log messages.