自从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: ╚═══════════════════════════════════════════════════════════════════════════════════════
有没有一种方法可以解决这个问题?