0
我使用以下ACRA配置
在logcat中包含時間戳來發電子郵件給我,當我的應用程序崩潰:安卓:通過ACRA
@ReportsCrashes(formKey = "", // will not be used
mailTo = "[email protected]", // my email here
customReportContent = {ReportField.APP_VERSION_CODE, ReportField.APP_VERSION_NAME, ReportField.ANDROID_VERSION, ReportField.PHONE_MODEL, ReportField.STACK_TRACE, ReportField.LOGCAT },
mode = ReportingInteractionMode.TOAST,
resToastText = R.string.crash_toast_text,
logcatArguments = { "-t", "1000", "myapp*:V" }
)
這會發電子郵件給我所有的logcat的文本輸出,但如何我是否包含Logcat中顯示的時間字段?
我曾嘗試在logcatArguments中添加「時間」,但完全沒有做任何事情。
我可以修改我的輸出文本的內容包括時間,但不會幫助其他系統事件,我可能感興趣的。