Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop Firebase from logging status updates when app is launched

Whenever I launch the FireBase app, it logs the status of various Firebase features. Right now this is what is being logged:

Configuring the default app.  <FIRAnalytics/INFO> Firebase Analytics v.3200000 started  <FIRAnalytics/INFO> To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see ...)  <FIRAnalytics/INFO> Successfully created Firebase Analytics App Delegate Proxy automatically. To disable the proxy, set the flag FirebaseAppDelegateProxyEnabled to NO in the Info.plist  <FIRInstanceID/WARNING> FIRInstanceID AppDelegate proxy enabled, will swizzle app delegate remote notification handlers. To disable add "FirebaseAppDelegateProxyEnabled" to your Info.plist and set it to NO  <FIRAnalytics/INFO> Firebase Analytics enabled 

I looked through the pods and didn't find any print statements so how else would I go about stopping these from being logged overtime I run the app?

like image 927
JCode Avatar asked May 18 '16 22:05

JCode


People also ask

How do I turn off Firebase Analytics?

If you need to deactivate Analytics collection permanently in a version of your app, set FIREBASE_ANALYTICS_COLLECTION_DEACTIVATED to YES (Boolean) in your app's Info.

How do I stop Firebase app indexing?

File -> Settings -> Plugins -> Firebase App Indexing -> uncheck. Restart Android Studio and it will be gone.

How do I enable FIRDebugEnabled?

Enable debug mode by passing the -FIRDebugEnabled argument to the application. You can add this argument in the application's Xcode scheme. When debug mode is enabled via -FIRDebugEnabled, further executions of the application will also be in debug mode.

What is event count in Firebase?

Event count: number of times the event was triggered. Users: number of users who triggered the event.


1 Answers

You can disable the debug logging with the flag -FIRDebugDisabled.

You can add it to your scheme:

  1. Select Scheme toolbar
  2. Edit Scheme
  3. Select Run
  4. Click Arguments and add -FIRDebugDisabled
like image 117
Ian Barber Avatar answered Sep 19 '22 11:09

Ian Barber