EventLog.WriteEvent("Application", new EventInstance(1001, 0, EventLogEntryType.Information),
new object[] { "Entry1", "Entry2" });
but my requirement is to add attributes to each data node like below
<EventData>
<Data name="title">Entry1</Data>
<Data name="message">Entry2</Data>
</EventData>
</Event>
please help me , how can i add attributes to each node in <evendata>