试图输出我LogCat中到一个文件 [英] Trying to output my LogCat to a file

查看:138
本文介绍了试图输出我LogCat中到一个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人告诉我这是一个命令行选项。但是Eclipse的运行!运行配置...!目标!附加仿真器的命令行选项栏已经有

I've been told it's a command line option. But Eclipse's Run!Run Configurations...!Target!Additional Emulator Command Line Options field is already occupied with

-sdcard "C:\android-sdk-windows\tools\sd9m.img"

如果我想写的东西像

adb logcat -s MessageBox > "C:\Users\me\Documents\LogCatOutput.txt"

然后我在哪里写它,以及如何(即是语法,甚至正确的)?我需要输出仅过滤标记,不详细。 (消息框是​​我的标签。再次,我不知道是否有这个标点是正确的,甚至是那里的命令去。)

then where do I write it, and how (i.e., is the syntax even correct)? I need to output only a filtered tag, not verbose. ("MessageBox" is my TAG. Again I don't know if any of this punctuation is right, or even where the command goes.)

感谢您的帮助。

推荐答案

应该有一个adb.exe文件位于C:\ Android的SDK-WINDOWS \工具。您可以从DOS命令提示符下手动调用这样的:

There should be an adb.exe file in C:\android-sdk-windows\tools. You can invoke this manually from a DOS command prompt:

cd C:\android-sdk-windows\tools
adb logcat -s MessageBox > "C:\Users\me\Documents\LogCatOutput.txt"

有没有必要与Eclipse费心在这种情况下。

There's no need to bother with Eclipse in this case.

这篇关于试图输出我LogCat中到一个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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