Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show log messages on screen for Android application

Is it possible to display the log messages (which I print using android.util.Log) on screen in an Android application?

Is there any other better method to just output lines on the screen?

Something like System.out.println?

like image 283
n1kh1lp Avatar asked Nov 22 '10 06:11

n1kh1lp


People also ask

How do I view logs on Android emulator?

To access it, open the Chrome Developer tools from the More tools menu. Inside it you need to open the Remote devices view from the More tools menu. The view will list all attached Android devices and running emulator instances, each with its own list of active web views.

Where do Android logs go?

To access the logging output, run the 'adb' executable with following arguments to capture the Android Enterprise related logging: Windows: C:\Users\[username]\AppData\Local\Android\sdk\platform-tools> adb logcat -G 32M; adb shell setprop persist. log.

How do I view the log messages of an app?

Click View > Tool Windows > Logcat (or click Logcat in the tool window bar). The Logcat window shows the log messages for the selected app, as selected from the dropdown lists at the top of the window, as shown in figure 1.

How do I view app logs in Android Studio?

As of Android Studio 2.2, the Run window also displays log messages for the current running app. Note that you can configure the logcat output display, but not the Run window. To display the log messages for an app: Build and run your app on a device. Click View > Tool Windows > Logcat (or click Logcat in the tool window bar).

How can I view the LogCat messages in Eclipse?

Like others have suggested, you can use log cat. If you are using the emulator or debugging a device, you can use adb logcat to view the messages. In Eclipse debug perspective, there is a window that will do that for you. Another way, without a debugger attached, is to use the CatLog - Logcat Reader application.

How to get Android logs on Samsung device?

A. Getting the android logs on a Samsung device is easier and fast with the secret code *#9900#. To get to the android logs in a Samsung device following the given steps;


1 Answers

Like others have suggested, you can use log cat. If you are using the emulator or debugging a device, you can use adb logcat to view the messages. In Eclipse debug perspective, there is a window that will do that for you.

Another way, without a debugger attached, is to use the CatLog - Logcat Reader application.

like image 54
kgiannakakis Avatar answered Oct 02 '22 12:10

kgiannakakis