Runtime: Developers can employ EventSource APIs when publishing for AOT targets to be able to use .NET tracing capabilities

Created on 14 Oct 2020  路  2Comments  路  Source: dotnet/runtime

EventSource is a common logging abstraction in .NET but it uses reflection to generate the schema for an EventSource definition. The source generator would do this at build time and make using EventSources reflection free.

0 Runtime User Story area-Tracing-coreclr feature request

Most helpful comment

How would this be consumed by non C# languages?

All 2 comments

EventSource used to have a hookup point for this that was used in .NET Native. It looked like this:

https://github.com/dotnet/runtime/blob/dbcea6b29704b1f485e569f90ee1906809a03119/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs#L646-L663

It was nuked in the meantime (latest sources don't have it anymore).

How would this be consumed by non C# languages?

Was this page helpful?
0 / 5 - 0 ratings