adb logcat: Increase the maximal message length

后端 未结 2 1563
小鲜肉
小鲜肉 2021-01-19 19:16

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 2048         


        
2条回答
  •  北海茫月
    2021-01-19 19:58

    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))

提交回复
热议问题