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);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top