自新版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
????????????????????????????????????????????????????????????????????????????????????????
Run Code Online (Sandbox Code Playgroud)
这是以前的方式:
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: ????????????????????????????????????????????????????????????????????????????????????????
Run Code Online (Sandbox Code Playgroud)
有没有办法解决这个问题?