I am trying to use eventlogs in my application using C#, so I added the following code
if (!EventLog.SourceExists(\"SomeName\"))
EventLog.CreateEventSource(\
Short tip:
One event source is registered during Service instalation (if application is Windows Service), and can be used without Security Exception with low-profile process owner (not Administrator)
I perform service installation / run with C# code in typical way from SO/ MSDN
Important is property ServiceName in class System.ServiceProcess.ServiceBase .