News

Microsoft Releases New Event Tracing Packages

The update, available through NuGet, supports older versions of the .NET Framework.

Microsoft announced today the release to manufacturing (RTM) of the EventSource NuGet package, which includes support for the older .NET Framework 3.5.

Cosmin Radu, a software developer on the .NET Runtime team, blogged about the RTM, calling it a response to user feedback. In addition, Radu said that the EventSource and EventRegister packages are now stable.

The EventSource release had to major upgrades, according to the blog. They involve better code sharing across multiple event source types, including:

  • EventSource types may now implement interfaces to enable the use of event source types in advanced logging systems that use interfaces to define a common logging target.
  • The concept of a utility event source type (defined as an abstract class deriving from EventSource) is introduced to support sharing code across multiple event source types in a project (e.g. for optimized WriteEvent() overloads).

EventSource is available as either a NuGet package or a class within the current .NET Framework. Microsoft recommends that if you're on the latest version of .NET -- 4.5, it's better to use the class. For those on .NET 3.5 or 4.0, or needing channel support, Redmond says the NuGet package is the way to go. The package name is Microsoft.Diagnostics.Tracing.EventSource.

The NuGet package enables a new feature: event log support. It allows a developer to define an additional destination for EventSource events, so they can be application-specific. The package supports the four predefined Event Event Tracing for Windows (ETW) channels that the Windows Event Log Defines: Admin, Operational, Analytics and Debug.

Radu explained the feedback that prompted the updates:

"We've received feedback that the build-time validation included in the beta release of EventSource was providing a significant benefit to anybody that was defining their own event source... As a result, we have released this functionality in the EventRegister NuGet package, which can be referenced from any project that uses some variation of EventSource."

The EventRegister Tool was first available as a Release Candidate (RC) last November, and went through two more RCs before today's stable release. EventSource was available in beta form last August, and has gone through three beta stages and three RC stages before the stable release of today.

NuGet is Microsoft's package manager for the .NET Framework. It's currently at version 2.8.

About the Author

Keith Ward is the editor in chief of Virtualization & Cloud Review. Follow him on Twitter @VirtReviewKeith.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube