gpt4 book ai didi

android-studio - Android Studio 3.1 Logcat 前缀并不总是显示和破坏漂亮的记录器

转载 作者:行者123 更新时间:2023-12-03 09:12:27 29 4
gpt4 key购买 nike

由于新版本的 Android Studio (3.1) Logcat 窗口并不总是显示前缀 ( 03-28 12:43:01.091 nl.test.app D/log )。我制作了我自己的记录器,它以一种漂亮的方式打印,但是由于某些行不再具有相同的缩进,因此它被破坏了。我将在下面展示一个例子。

03-28 12:43:01.091 nl.test.app D/log: ╔═══════════════════════════════════════════════════════════════════════════════════════
║ [ (TestActivity.kt:33)#OnCreate ]
║ This is my test log
03-28 12:43:01.092 nl.test.app D/log: ║ This is my second test log
╚═══════════════════════════════════════════════════════════════════════════════════════

这是以前的样子:
03-28 12:43:01.091 nl.test.app D/log: ╔═══════════════════════════════════════════════════════════════════════════════════════
03-28 12:43:01.091 nl.test.app D/log: ║ [ (TestActivity.kt:33)#OnCreate ]
03-28 12:43:01.091 nl.test.app D/log: ║ This is my test log
03-28 12:43:01.092 nl.test.app D/log: ║ This is my second test log
03-28 12:43:01.092 nl.test.app D/log: ╚═══════════════════════════════════════════════════════════════════════════════════════

有没有办法解决这个问题?

最佳答案

根据问题跟踪器 ( https://issuetracker.google.com/issues/77305804 ) 已修复并计划用于 Android Studio 3.2。引用问题跟踪器:

This change in behavior was inadvertent and I reverted it. The fix will go out in 3.2.



它没有说这个版本什么时候发布。但我会尽快更新我的答案。

编辑

Android Studio 3.2 发布了,我漂亮的记录器又开始工作了!

关于android-studio - Android Studio 3.1 Logcat 前缀并不总是显示和破坏漂亮的记录器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49535163/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com