android - 亚行 logcat : Increase the maximal message length

标签 android adb logcat

似乎 logcat 会截断很长的日志消息,有什么办法可以防止这种情况发生吗?

$ adb logcat -g
ring buffer is 64Kb (63Kb consumed), max entry is 20480b, max payload is 20460b

我认为我需要增加最大条目和/或可能的有效负载大小!?

亲切的问候 亚历克斯

最佳答案

最大条目和最大有效负载的硬编码如下。所以我认为您无法更改它们。

'#define LOGGER_ENTRY_MAX_LEN (4*1024)
'#define LOGGER_ENTRY_MAX_PAYLOAD \ (LOGGER_ENTRY_MAX_LEN - sizeof(struct logger_entry))

关于android - 亚行 logcat : Increase the maximal message length,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8773606/

相关文章:

android - Haxe - 你如何检查昼夜循环的时间?

android - 警告 :Dependency org. json:json:20090211 被忽略以进行调试,因为它可能与 Android 提供的内部版本冲突

android - 'adb' 不是内部或外部命令、可运行程序或批处理文件

Android adb (OSX Lion) 无法识别 Galaxy Nexus、Jelly Bean

java - 如何在文本文件中编写 android 中的 Logcat,但我不想要所有日志,只想要我的应用程序

android - 如何将 Timber 日志重定向到 Junit logcat

java - MainActivity 泄露了最初在此处添加的窗口 com.android.internal.policy.impl.PhoneWindow$DecorView@413da0c0

android - 此项目与您的设备 (Galaxy S3) 不兼容

android - 如何解决adb : connect error for write : closed

java - 使 JsonGetter 不区分大小写