Android 桌面日志查看器

发布于 2024-10-05 05:36:05 字数 183 浏览 8 评论 0原文

我的 Android 应用程序可能会将 logcat 日志保存到文件中。然后将该日志文件发送给开发人员进行分析。

是否有一个很好的桌面 Android 日志查看器应用程序,可以可视化这些日志?

我无法在 Android SDK 中找到可用的工具。也许我错过了一些东西?

My Android application may save logcat logs to a file. This log file is then sent to developers for analysis.

Is there a nice desktop android log viewer application, which would visualize these logs?

I wasn't able to find a ready to use tool in Android SDK. Maybe I missed something there?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(10

一场春暖 2024-10-12 05:36:05

读取android logcat日志文件的桌面工具,与DDMS相同。
在此处输入图像描述
这个工具的目的是让开发者能够快速定位、分析、解决问题,而不是
而不是在日志文件中苦苦挣扎。

特点:
http://code.google.com/p/androidlogcatviewer/wiki/KeyFeature

下载:
http://code.google.com/p/androidlogcatviewer/downloads/list

讨论组:
http://groups.google.com/group/androidlogcatviewer

Desktop tool for reading android logcat log file, the same as DDMS.
enter image description here
The purpose of this tool is to allow developers to quickly locate, analyze, problem-solving, rather
than struggling in the log file.

Feature:
http://code.google.com/p/androidlogcatviewer/wiki/KeyFeature

Download:
http://code.google.com/p/androidlogcatviewer/downloads/list

Discuss-group:
http://groups.google.com/group/androidlogcatviewer

耳钉梦 2024-10-12 05:36:05

我尝试过 logview-0.19 - 对于我的 13Mb 日志效果很好。

在 Linux 中运行时,请确保将 ./logview 和 ./lib/logview.jar 标记为可执行文件。

I've tried logview-0.19 - works fine for my 13Mb logs.

Make sure to mark ./logview and ./lib/logview.jar as executable when running in Linux.

夜空下最亮的亮点 2024-10-12 05:36:05

Splinter Log 适用于 MacOS,并且可以做一些比 DDMS 更好的事情,例如分组标签、将 pid 解析为包名称、等 https://splinter-log.com

在此处输入图像描述

Splinter Log works on MacOS and can do a few things better than DDMS, like grouping tags, resolving pids to package name, etc. https://splinter-log.com

enter image description here

ι不睡觉的鱼゛ 2024-10-12 05:36:05

我发现在线LogCat美化器可以为给定的LogCat着色以方便阅读。非常好的工具,它使用 JavaScript,这意味着任何地方都不会存储任何内容!

LogCat Beautifier in action

更新:

该链接不再可访问,幸运的是,Android Studio 现在支持粘贴 LogCat进入其“LogCat”选项卡(以前的“Monitor”)。粘贴后,您可以选择像普通 LogCat 的日志一样进行搜索/单击。

I found Online LogCat Beautifier to which can colourize given LogCat for easy reading. Really nice tool and it uses JavaScript, which means nothing is stored anywhere!

LogCat Beautifier in action

Update:

The link is no longer accessible, and luckily enough for us, Android Studio now supports pasting the LogCat into its "LogCat" tab (previously "Monitor"). Upon pasting, you'd have the options to search/click like a normal LogCat's log.

四叶草在未来唯美盛开 2024-10-12 05:36:05

我使用coloredlogcat在控制台上查看logcat日志。您应该也能做同样的事情。

cat logfile | coloredlogcat.py

它应该开箱即用。如果没有,我确信只需要进行一些小的修改。
看看这个链接 coloredlogcat 了解详细信息。

I use coloredlogcat for viewing logcat logs on the console. You should be able to do the same.

cat logfile | coloredlogcat.py

It should work out of the box. If it doesn't, I'm sure only minor modifications are needed.
Have a look at this link coloredlogcat for details.

娇俏 2024-10-12 05:36:05

您可以在没有 Eclipse 的情况下使用 Android 调试监视器或 DDMS

You can use Android Debug Monitor or DDMS without Eclipse.

终难愈 2024-10-12 05:36:05

我调整了 log4j Chainsaw V2 和 (VFS)LogFilePatternReceiver,以允许 Chainsaw 从通过 logcat -v time 生成的 Android 日志文件中读取事件

下载 Chainsaw 的最新开发人员快照(Mac DMG 和 tarball 可用): http://people.apache.org/~sdeboy

将此 XML 保存为文件(调整 fileURL 后):

<?xml version="1.0" encoding="UTF-8"?>
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="true">
<plugin class="org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver" name="android-log">
    <param name="appendNonMatches" value="true"/>
    <param name="autoReconnect" value="true"/>
    <param name="fileURL" value="file:/path/to/android/log"/>
    <param name="name" value="android-log"/>
    <param name="logFormat" value="TIMESTAMP LEVEL/LOGGER(PROP(PID)):MESSAGE"/> 
    <param name="customLevelDefinitions" value="V=TRACE,D=DEBUG,I=INFO,W=WARN,E=ERROR,F=FATAL,S=OFF"/>
    <param name="promptForUserInfo" value="false"/>
    <param name="tailing" value="true"/>
    <param name="timestampFormat" value="yyyyMMdd HH:mm:ss.SSS"/>
    <param name="waitMillis" value="2000"/>
</plugin>
</log4j:configuration>

然后启动 Chainsaw 后,从“文件,加载 Chainsaw 配置”菜单中选择“使用 Chainsaw 配置文件”选项,浏览到此 XML 文件,选择“始终使用此配置启动 Chainsaw”,然后按“确定”。

I've tweaked log4j Chainsaw V2 and the (VFS)LogFilePatternReceiver to allow Chainsaw to read events from Android log files generated via logcat -v time

Download the latest developer snapshot of Chainsaw (Mac DMG and tarball available): http://people.apache.org/~sdeboy

Save this XML off as a file (after tweaking the fileURL):

<?xml version="1.0" encoding="UTF-8"?>
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="true">
<plugin class="org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver" name="android-log">
    <param name="appendNonMatches" value="true"/>
    <param name="autoReconnect" value="true"/>
    <param name="fileURL" value="file:/path/to/android/log"/>
    <param name="name" value="android-log"/>
    <param name="logFormat" value="TIMESTAMP LEVEL/LOGGER(PROP(PID)):MESSAGE"/> 
    <param name="customLevelDefinitions" value="V=TRACE,D=DEBUG,I=INFO,W=WARN,E=ERROR,F=FATAL,S=OFF"/>
    <param name="promptForUserInfo" value="false"/>
    <param name="tailing" value="true"/>
    <param name="timestampFormat" value="yyyyMMdd HH:mm:ss.SSS"/>
    <param name="waitMillis" value="2000"/>
</plugin>
</log4j:configuration>

And then after starting Chainsaw, select the 'Use a Chainsaw config file' option from the 'File, load Chainsaw configuration' menu, browse to this XML file, select 'always start Chainsaw with this configuration' and press OK.

谈情不如逗狗 2024-10-12 05:36:05

我喜欢 LogExpert。它有很棒的过滤选项,而且速度相当快。因此,我创建了一个解析 LogCat 日志的自定义列生成器。它有一些改进,能够使用方法和行解析我的自定义日志。您可以在此处下载它。

I like LogExpert. It has great filtering options and it is pretty fast. So I have created a custom columnizer that parses LogCat logs. It has some improvements to be able to parse my custom logs with method and line. You can download it here.

花桑 2024-10-12 05:36:05

就我个人而言,我喜欢 TailExpert ,我将它与 logcatUDP 一起使用来捕获来自多个 android 目标的日志,logcatUDP 通过网络发送日志到 tailexpert,我在那里捕获它并并排查看。但是如果您愿意,您也可以从文件中读取日志,它是一个尾部程序,因此当日志消息到达时它会将日志消息添加到视图中。您可以根据关键字过滤消息并使用颜色来识别某些日志消息。我喜欢的另一件事是,在 tailexpert 中,您可以动态创建列生成器,并轻松隐藏一个或多个列或更改列顺序。该程序充满了功能,我最近刚刚开始发现使用通知来动态放置书签并在特定日志消息经过时停止日志,这使得导航速度更快。只需检查一下即可,您可以在此处下载。

Personally I like TailExpert which I use together with logcatUDP to capture logs from multiple android targets, logcatUDP sends the log over the network to tailexpert where I capture it and view the side by side. But you can also read the logs from file if you like, it's a tail program so it will add logmessages to the view when they arrive. You can filter messages on keywords and use colors to identify certain logmessages. The other thing I like is that in tailexpert you can create columnizers on the fly and easily hide one or more columns or change the column order. The program is packed with features and I recently just started to discover the use of notifications to place bookmarks on the fly and halt the log when a certain logmessages passes by, which makes navigation so much quicker. Just check it out, you can download it here.

一紙繁鸢 2024-10-12 05:36:05

我现在使用 http://mlogcat.tistory.com/ ,因为 Logcat Offline Viewer 可能由于 JAVA 更新而退出工作。

I went with http://mlogcat.tistory.com/ now, since Logcat Offline Viewer quit its job probably due to JAVA update.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文