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

  • Creating Reactive Applications in .NET

    In modern applications, data is being retrieved in asynchronous, real-time streams, as traditional pull requests where the clients asks for data from the server are becoming a thing of the past.

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

  • .NET 9 Preview 3: 'I've Been Waiting 9 Years for This API!'

    Microsoft's third preview of .NET 9 sees a lot of minor tweaks and fixes with no earth-shaking new functionality, but little things can be important to individual developers.

  • Data Anomaly Detection Using a Neural Autoencoder with C#

    Dr. James McCaffrey of Microsoft Research tackles the process of examining a set of source data to find data items that are different in some way from the majority of the source items.

Subscribe on YouTube