简体   繁体   English

我在Android中看不到我的日志

[英]I can not see my log in Android

I put the following excerpts log in my Android application: 我将以下摘录登录到我的Android应用程序中:

Log.w (TAG_NAME, "Hello Log - Warning!");
System.out.println ("CardapioWeb: xml downloaded:" + xmlBaixadoComSucesso);

When running the application in Eclipse, I can smoothly view these logs in Eclipse LogCat Tab. 在Eclipse中运行应用程序时,我可以在Eclipse LogCat Tab中平稳查看这些日志。

The problem occurs when I install the application on a real phone (Galaxy S4 for example). 当我在真实电话(例如Galaxy S4)上安装应用程序时,会出现问题。 I export the system log using various apps, but does not appear in that log no one of my excerpts. 我使用各种应用程序导出了系统日志,但是我的摘录之一都没有出现在该日志中。 My log is not displayed in a real cell, only in Android Emulator . 我的日志未显示在实际单元中,仅显示在Android Emulator中。 I need something to enable the log show? 我需要启用日志显示的功能吗?

Thanks' 谢谢'

Starting with Android 4.1, applications can only see their own log statements. 从Android 4.1开始,应用程序只能看到自己的日志语句。 You wrote that you used various apps to export the logs, so that may be the reason why you don't see it. 您写道,您使用各种应用程序来导出日志,因此这可能是您看不到日志的原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM