I'm attempting to set up a WCF LogReceiverService that can be a log target for all of our projects. The receiver's own nlog configuration will use a Database target to log all received events to a database.
Although this seems to be running fine, I'm unable to get exception and callsite information sent to the service. When inspecting the received LogEventInfo object the Exception and HasStackTrace properties are always null/false. The test client app is certainly using the xxxException(message, exception) methods to send the event.
Also, there appears to be no way of sending callsite information.
I've temporarily got around this by manually setting parameters in the caller to include this information. This shows up correctly in the LogEventInfo's properties collection, but this feels like a kludge.
Re: LogReceiverService and Exception/Callsite Info
I am trying to do something similar. Callsite Info seems to be server side. So I am trying to pass my values as parameters. But server side my parameters do not appear in the list of values, they appear in the list of strings. In the list of values there are integer values instead of the text that was passed. The integers seem consistent with the index of the value in the string collection. I am passing the values from the client as follows within the target;