Android Eclipse Logcat消息:ADT如何获取应用程序列? [英] Android Eclipse Logcat messages: How does ADT get the Application column?

查看:191
本文介绍了Android Eclipse Logcat消息:ADT如何获取应用程序列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在命令窗口上运行Logcat,并尝试所有可能的格式:

  • brief - 显示发送消息的进程的优先级/标签和PID(默认值格式)。
  • 流程 - 仅显示PID。
  • 标签 - 仅显示优先级/标记。
  • raw - 显示原始日志消息,没有其他元数据字段。
  • 时间 - 显示进程的日期,调用时间,优先级/标签和PID。
  • 线程 - 显示优先级,标签以及PID和TID。
  • 线程时间 - 显示日期,调用时间,优先级,标签以及PID和TID。
  • long - 显示所有元数据字段和单独的消息与空行。

    I ran Logcat on a command window and tried all possible formats:

  • brief — Display priority/tag and PID of the process issuing the message (the default format).
  • process — Display PID only.
  • tag — Display the priority/tag only.
  • raw — Display the raw log message, with no other metadata fields.
  • time — Display the date, invocation time, priority/tag, and PID of the process.
  • thread — Display the priority, tag, and the PID and TID.
  • threadtime — Display the date, invocation time, priority, tag, and the PID and TID.
  • long — Display all metadata fields and separate messages with blank lines.

    我找不到任何格式 Eclipse ADT的Logcat如何知道发布消息的应用程序的名称是什么。

    I could not find in any of those formats how does Eclipse ADT's Logcat figure out what is the name of the Application issuing the message.

    如果您使用Eclipse,请查看在LogCat选项卡上,它具有时间,PID,应用程序,标签和文本列。

    它是否使用TID来标识应用程序?在哪里可以获得系统中运行的TID和应用程序名称列表?

    If you use Eclipse, look at the LogCat tab, it has Time, PID, Application, Tag and Text columns.
    Does it use the TID to identify the application? Where can I get the list of TIDs and app names running in the system?

    推荐答案

    我有同样的问题:
    https:// stackoverflow .com / questions / 10366709 / android-using-logcat-in-the-command-line-application-info-exact-priority-f

    i '不知道它是如何在eclipse上工作的,但是你可以有一个解决方法:从日志中取出与进程名称匹配的进程id。
    奇怪的是,这可能与在那里工作的方式一样,因为对于某些日志消息,eclipse不会显示哪个应用程序已经写入了日志消息。
    你也可以通过pid获取包名,但是我找不到这样做的方法。

    i'm not sure how it works on eclipse , but you can have a workaround: take from the log which process id was started that matches the package name . the weird thing is that this might be the same way it works there , since for some log messages , eclipse doesn't show which application has written the log message. you might also be able to fetch the package name by pid , but i can't find out the method to do this.

    这篇关于Android Eclipse Logcat消息:ADT如何获取应用程序列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆