Child service not writing to event log
- by Tommy Fisk
I am having a very simple (but incredibly frustrating) issue with a parent service and the child service.
Let's call the parent service "Service A" and the child "Service B". Both services reside on the same box.
Using WCF Storm, when I send Service B a message, I see lots of entries in the event viewer for it. However, if I send a message to Service A, which calls Service B, I only see entries from Service A.
So for some reason, the child logs are not written when the parent calls it, but if I call it myself, the logs do indeed show up, so I know it's not a problem with the logging or anything like that.
Here is what I am using to write to the event log.
// in some random static class
private static EventLog el = new EventLog();
el.WriteEntry("In " + location + ", " + message); // params passed in
Does anyone know why this is happening? And more importantly what I can do about it?