C#C
C#3y ago
Eistee

✅ When and how should I use the Windows EventLog?

Hello, do I need to create proper source via EventLog.CreateEventSource?

If I need to, what is the proper way to create this source if the application has no setup and should run without elevated rights?
I could imagine to add another executable, which only registers the source, that you can get those from the actual program with System.Diagnostics.Process.Start and startInfo.Verb = "runas";

Do you have an opinion on this or can you give me some tips?
Was this page helpful?