How can I write XML data to a Windows event log?
I noticed that there is a way to insert XML into the Windows event log (and not just populate it with a description). The effect is that you only get your description in the view Generalin Windows Vista. You can see your XML data in a view Details.
If you select the switch Friendly, it will appear under the Event Datanode. If you select an XML view, you will see XML.
I thought that the rawData byte array in the method EventLog.WriteEntry()would allow me to do this. I tried to add the XMLWriter result to it. This puts the data in the event log, but is considered binary, not XML.
source
share