问题描述
我已经在那里我需要从我的应用程序发送的崩溃报告,无一不这种特殊情况我自己的服务器。和说:
I've this special case where in I need to send the crash reports from my app to both BugSense and my own server. And AdvancedUsage - ACRA/acra Wiki says :
你甚至可以发送至多个目的地的报告。
不过,在哪里以及如何准确地做我指定这些?
But where and how exactly do I specify these?
我能想到的唯一的办法是通过实现我自己的并使其成为数据发布到两个服务器。而且我猜有做这样一个简单的方法。
The only solution I can think of is by implementing my own ReportSender
and making it post the data to both the servers. And I'm guessing that there is a simpler way to do this.
推荐答案
除了我已经谈到了这个问题(解决的通过实现我们自己的 ReportSender $ C $版本C>
的),我们可以明显地还使用不太明显:
Apart from the solution I already talked about in the question (by implementing our own version of ReportSender
), we can apparently also use the less obvious :
这增加了 ReportSender
到列表< ReportSender> mReportSenders
,然后遍历的同时发送报告。
This adds the ReportSender
to List<ReportSender> mReportSenders
, which is then iterated over while sending reports.
这篇关于如何发送ACRA报告到多个目的地?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!