Port GREF logging to .NET 6+ EventSource infrastructure
- Dominant language
- C#
- Stars
- 2.1k
- Forks
- 579
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 252
Description
### Android application type
Android for .NET (net6.0-android, etc.)
### Affected platform version
.NET 6
### Description
The .NET Podcast app shows `dotnet trace` output for:

https://github.com/xamarin/xamarin-android/blob/af2875138afada68a870cc803c3e8dcd2e85ff6f/src/Mono.Android/Android.Runtime/AndroidRuntime.cs#L178-L188
https://github.com/xamarin/xamarin-android/blob/af2875138afada68a870cc803c3e8dcd2e85ff6f/src/Mono.Android/Android.Runtime/AndroidRuntime.cs#L206-L211
This logging is almost always disabled, but we call into unmanaged code to increment an integer.
We could ideally port this logging to EventSource and do everything on the managed side -- avoid p/invoke for these.
### Steps to Reproduce
Get `dotnet trace` output for an .NET 6 app.
### Did you find any workaround?
_No response_
### Relevant log output
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.