Now that I have integrated Firebase, I don't want to see logcat spam like this
D/FirebaseCrashApiImpl: FirebaseCrash reporting API initialized I/FirebaseCrash: FirebaseCrash reporting initialized com.google.firebase.crash.internal.zzg@e9c7537 D/FirebaseApp: Initialized class com.google.firebase.crash.FirebaseCrash. I/FA: App measurement is starting up, version: 9080 I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
I tried running adb shell setprop log.tag.FA ERROR
, but it still keeps logging everything.
How do I turn it off in the SDK (or setprop)? Filtering it out of logcat is not the solution I am looking for.
Firebase logs displayed in Logcat with tag FA, so create a regex to hide tag FA ^ (?!.* (FA)).*$ and put that in Log Tag in Logcat Filter dialog in Android Studio. 2. Within Application Logs Sometimes we want to show the logs within the application for debug purpose. Like application has a connectivity issue with the server in some devices.
To remove the unnecessary logs from the Logcat by creating a filter list based on the tag. We can create regex like if you want to remove Firebase log from Logcat. Firebase logs displayed in Logcat with tag FA, so create a regex to hide tag FA ^ (?!.* (FA)).*$ and put that in Log Tag in Logcat Filter dialog in Android Studio.
After you have configured the firebase.analytics () instance, you can begin to log events with the logEvent () method. If you're already familiar with Google Analytics, this method is equivalent to using the event command in gtag.js.
In the logcat console dropdown on the right side, click Edit Filter Configuration In Log Tag field (Regex must be checked), enter this: ^ (?! (FA)) Done! If you want to disable multiple TAGs then use ^ (?! (EXCLUDE_TAG1|EXCLUDE_TAG2)) e.g. ^ (?! (FA|QueuedMuxer|ACodec|MPEG4Writer)) I think you have to disable every package separately.
You can go disable it via command line:
adb shell setprop log.tag.FA SILENT adb shell setprop log.tag.FA-SVC SILENT
The only way I found is to use the logcat filters in Android Studio to just hide all lines with tag FA
.
^(?!(FA))
Done!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With