简体   繁体   中英

I can not see my log in Android

I put the following excerpts log in my Android application:

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.

The problem occurs when I install the application on a real phone (Galaxy S4 for example). 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 . I need something to enable the log show?

Thanks'

Starting with Android 4.1, applications can only see their own log statements. You wrote that you used various apps to export the logs, so that may be the reason why you don't see it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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