newrelic / newrelic-maui-plugin

New Relic Mobile instrumentation for MAUI
Apache License 2.0
9 stars 5 forks source link

MAUI logs not visible in mobile.logs panel #44

Closed L3mur1 closed 2 months ago

L3mur1 commented 2 months ago

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:

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
L3mur1 commented 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?

L3mur1 commented 2 months ago

Closing issue, its somewhere on my side. When i created empty project, everything works as expected