如何登录Fabrics长消息

时间:2017-09-24 13:44:00

标签: android google-fabric

我正在尝试在Fabrics系统(Android)上编写一条长文本日志消息,如下所示:

<ScrollView
    style="@style/scrollDefaultStyle"
    android:layout_height="wrap_content"
    android:fillViewport="true"
    >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <TabLayout .... />

        <android.support.v4.view.ViewPager
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1" />

    </LinearLayout>
</ScrollView>

消息被切断,无法找到扩展它的方法:

enter image description here

即使将消息添加为自定义属性,如@Alexizamerican建议,

Answers.getInstance().logCustom(new CustomEvent("Request:" + requestUrl + "\nResponse:" + json));

它会在事件信息中心中保留,请参见下面的图片:enter image description here

如何查看整条信息?

1 个答案:

答案 0 :(得分:3)

最好将较长的消息包含为事件的自定义属性,而不是事件名称。例如:

(define (index->filter [pf : (IndexItemT -> boolean)] [index : IndexT]) : IndexT
  ....)

退房 https://docs.fabric.io/android/answers/answers-events.html#custom-attributes  了解更多详情。