Child service not writing to event log
Posted
by
Tommy Fisk
on Stack Overflow
See other posts from Stack Overflow
or by Tommy Fisk
Published on 2012-07-08T04:53:31Z
Indexed on
2012/07/08
15:16 UTC
Read the original article
Hit count: 228
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?
© Stack Overflow or respective owner