Closed L3mur1 closed 2 months ago
Is it due to feature yet not available on new relic side? https://knowledge.newrelic.com/s/article/Mobile-Agents-not-sending-logs-to-UI
but then what are methods CrossNewRelic.Current.Log.. doing?
Closing issue, its somewhere on my side. When i created empty project, everything works as expected
Description
I have a problem with MAUI application instrumentation. Trying to forward logs to new relic. I can't see them in UI pannel and not sure what is not working/ next step to check.
I tested it on Android, don't know if same issue is for iOS.
My problem is:
I can't see any logs send with method:
CrossNewRelic.Current.Log(newRelicLogLevel, message); from my MAUI android application in NewRelic UI: "mobile->monitor->logs" pannel
What I done:
I instrumented my MAUI application using new relic agent -> https://docs.newrelic.com/docs/release-notes/mobile-release-notes/net-maui-release-notes/net-maui-agent-110/. According to documentation: https://docs.newrelic.com/docs/mobile-monitoring/new-relic-mobile-maui-dotnet/monitor-your-net-maui-application/
method: CrossNewRelic.Current.RecordException(exception, properties); works as expected - exceptions are visible in the "mobile->triage->handledExcepions" panel.
I removed any sampling -> changed settings to see 100% of users logs in mobile.settings.application panel.
I changed log levels to minimum in both on client side in new relic maui plugin and mobile.settings.application panel.
CrossNewRelic.Current.Log(newRelicLogLevel, message); are used in my MAUI application.
My MAUI application is made on .Net 8
Android API 34
NewRelic.MAUI.Plugin version 1.1.1
this is my AgentStartConfiguration:
| Name | Value | Type -- | -- | -- | -- | analyticsEventEnabled | true | bool | backgroundReportingEnabled | false | bool | collectorAddress | "DEFAULT" | string | crashCollectorAddress | "DEFAULT" | string | crashReportingEnabled | true | bool | fedRampEnabled | false | bool | interactionTracingEnabled | false | bool | logLevel | NewRelic.MAUI.Plugin.LogLevel.VERBOSE | NewRelic.MAUI.Plugin.LogLevel | loggingEnabled | true | bool | networkErrorRequestEnabled | true | bool | networkRequestEnabled | true | bool | newEventSystemEnabled | true | bool | offlineStorageEnabled | true | bool | webViewInstrumentation | true | bool