Writing to a custom event log
Hello
I've created a custom event log which I want my application to write events to. When I run my application it writes logs to the custom event log and also to the Application log. This is OK but all log entries in the Application log are also written to my custom event log. Is there a way to prevent other application to write to my custom event log?
I've created my custom event log like this
EventLog
.CreateEventSource("MyCustomEvtSrc","MyCustomEvtLog");I write logs like this
EventLog log =newEventLog("MyCustomEvtLog",".","MyCustomEvtSrc");
log.WriteEntry("Log message");
Thanks for your help,
/Ulf

