The code we vendored in to create the Android Assembly Readers currently uses a DebugLogger delegate:
|
public delegate void DebugLogger(string message, params object?[] args); |
The existing delegate doesn't have any notion of "log levels", so is a bit limited.
We can't use our IDiagnosticLogger, since this would create a circular reference. However we can add a DebugLoggerLevel enum and use this as the first parameter to the DebugLogger delegate.
Originally posted by @jamescrosswell in #4294 (comment)
The code we vendored in to create the Android Assembly Readers currently uses a
DebugLoggerdelegate:sentry-dotnet/src/Sentry.Android.AssemblyReader/DebugLogger.cs
Line 8 in 4ee96ee
The existing delegate doesn't have any notion of "log levels", so is a bit limited.
We can't use our
IDiagnosticLogger, since this would create a circular reference. However we can add aDebugLoggerLevelenum and use this as the first parameter to theDebugLoggerdelegate.Originally posted by @jamescrosswell in #4294 (comment)