Introduction
At first glance the subjects of the event log, process control, and benchmarking don't seem to have all that much in common, but they do all fit within the umbrella of diagnostics. Not so coincidentally, the types that support these topics are all defined in the System::Diagnostics. If you have ever used the Win32 API to access and modify the event log—along with message files and the message compiler—you'll really appreciate the first section of this chapter as I'll illustrate how the EventLog class (and related classes) make this task so much easier than ever before. In fact, not only will you learn the common operations of enumerating event logs, creating custom logs, writing event entries, and enumerating log entries, but you'll ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access