how to write raw data to event log.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi I am writing to the event log in a c# console app, but can not seem to
write data. the message below works with 23 being the catagory, just
wondering what format to use to write for instance a byte of data?
System.Diagnostics.EventLog.WriteEntry("newlog","testmessageone",
EventLogEntryType.Error,eventID1,23);
 
Back
Top