© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
4 replies
Eistee

✅ When and how should I use the Windows EventLog?

Hello, do I need to create proper source via
EventLog.CreateEventSource
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
System.Diagnostics.Process.Start
and
startInfo.Verb = "runas";
startInfo.Verb = "runas";


Do you have an opinion on this or can you give me some tips?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ DotNet 6 (Windows service), how to fix error EventLog ?
C#CC# / help
4y ago
✅ How should I use SelectAsync?
C#CC# / help
3y ago
System.Diagnostics.EventLog [Answered]
C#CC# / help
4y ago
What is dependency injection and when should I realistically use it
C#CC# / help
2y ago