adb logcat:增加最大消息长度 [英] adb logcat: Increase the maximal message length

查看:616
本文介绍了adb logcat:增加最大消息长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

logcat似乎截断了很长的日志消息,有没有办法防止这种情况?

it seems like logcat truncates very long log messages, is there a way to prevent this?

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

我想我需要增加最大条目数和/或可能增加有效载荷大小!?

I think I need to increase the max entry and/or may payload size!?

亲切的问候
Alex

Kind regards Alex

推荐答案

最大条目和最大有效载荷的编码如下。所以我认为您不能更改它们。

max entry and max payload are harcoded as below. So i dont think you can change them.


'#define LOGGER_ENTRY_MAX_LEN(4 * 1024)

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

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

这篇关于adb logcat:增加最大消息长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆