.net - Why use ETW over EventLog and vice versa? -


why should use event tracing windows (etw) on standard .net eventlog class, , vice versa? knowing we'll using quite few performance counters impact decision?

what know far:

  1. etw should perform better.
  2. etw more work integrate (e.g. .net event tracing windows)
  3. by selecting 1 of standard channels in etw (e.g. application, system), same information available in event log.

etw has many advantages.

first, in .net 4.5, far simpler use. eventsource class in 4.5 dramatically simplifies creating events within code.

however, without this, etw has huge advantages, though typically work differently, and, such, serve different purpose eventlog.

eventlog designed logging. etw, on other hand, allows trace application's progress in context of system whole. when start collecting etw events, collect them on system basis, lets not trace application, see what's happening in relation system it's running. using tool perfview, can see how specific portions of application operate while simultaneously seeing what's happening framework , windows whole.


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -