I just added FIRAnalyticsDebugEnabled
as a launch argument as was suggested in several places:
The Xcode console:
6.5.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see [https://help.apple.com/xcode/mac/8.0/])
The Get Started with Google Analytics for iOS guide:
- Etc.
Once I enabled it, I started seeing output such as:
Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: session_start (_s), {
firebase_debug (_dbg) = 1;
firebase_event_origin (_o) = auto;
ga_realtime (_r) = 1;
session_id (_sid) = 123;
session_number (_sno) = 2;
}
Now that I know that events are being output properly, I want to disable this as it is spamming the console. However, none of those resources mentioned above talk about how to disable it.
How do I disable it?
I tried removing the launch argument, but the logs still appear.
Note that this is not a duplicate of these similar questions:
- How to stop Firebase from logging status updates when app is launched -- OP never enabled
FIRAnalyticsDebugEnabled
and is asking about how to disable the message telling them to enableFIRAnalyticsDebugEnabled
(among others). - Completely disable Firebase/Analytics to stop console spam on app startup -- same as above.