【问题标题】:Remove time, date, and package name from System.out.print in Android Studio logcat从 Android Studio logcat 中的 System.out.print 中删除时间、日期和包名称
【发布时间】:2016-06-11 18:43:52
【问题描述】:

我想删除以下类型的文字

"06-11 14:36:59.814 3951-4564/example.myapplication I/System.out﹕"

来自我应用中的 system.out.prints。

我怎样才能做到这一点?我正在使用安卓工作室

【问题讨论】:

  • 我认为这里的解决方案应该是使用正确的Log 类,因为 1)这就是在 Android 中打印到 logcat 的方式和 2)输入更少

标签: android android-studio android-logcat


【解决方案1】:

Android Studio 2.2

不确定是哪个版本提供的,但 2.2 有它...

我自己发现了这个。好开心。

【讨论】:

  • 非常感谢。
  • 我在 Android Studio 3.2 中似乎找不到这个
  • 它适用于我的 Andriod Studio 4.1.1。非常感谢。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2010-11-06
  • 1970-01-01
  • 2014-08-23
  • 1970-01-01
  • 1970-01-01
  • 2012-11-23
相关资源
最近更新 更多