Fabric 将日志写入 android logcat 除了 Android 中的 Fabric 仪表板

Fabric write Log to android logcat in addition to Fabric dashboard in Android

我正在使用 Fabric crashlytics 进行崩溃报告。除了 fabric 仪表板之外,Fabric 将日志写入 android logcat。我想禁用 android logcat 消息,但没有找到这样的方法。

您想使用 Crashlytics.log(msg); 而不是 Crashlytics.log(int priority, String tag, String msg);

来自documentation

"The recommended way to add custom logging to your app is Crashlytics.log(int priority, String tag, String msg);. In addition to writing to the next crash report, it will also write to the LogCat using android.util.Log.println(priority, tag, msg). If you don’t want to write to LogCat you should call: Crashlytics.log(msg); which will only write to the Crashlytics crash report."