Android API for sending log output, which can be viewed and filtered by logcat.
Questions tagged [android-log]
78 questions
1
vote
1 answer
How to log the data using WIFI connection in android log entries SDK
I want to know is there any way to determine whatever I am logging should go through WIFI instead of device network,Is there any methods as part of Log entries SDK

Rakesh
- 14,997
- 13
- 42
- 62
1
vote
1 answer
android how to capture only my log entries in the application programmatically
I want to get my log entries alone which i had put in the application and show it in the scrollable textview. For example
Log.e(SAMPLE_ACTIVITY_TAG, "App started")
I need those error logs alone and i dont want other unwanted logs. Is it possible…

Firnaz
- 553
- 7
- 31
1
vote
0 answers
Proguard not stripping unused generated variables after stripping out Log statements
I created a wrapper class MyLog to do logging for my Android app, which essentially just wraps android.util.Log. I want logging to be completely gone in my release app. I have the following rule defined in my proguard file:
-assumenosideeffects…

amitsaurav
- 531
- 1
- 5
- 18
1
vote
1 answer
Android log file has missing lines
i use some batch script for android device , it should clear The device log , start and close an apk and then take the log out of it.
thats my code i use:
adb -s %DeviceId% logcat -c
adb -s %DeviceId% shell am start -n…

Roey Cohen
- 329
- 2
- 5
- 17
1
vote
2 answers
Android - Tracking release build crashes / exceptions / ANRs'
How do I check for errors or log errors in release version of my app?
Activity crashes the app in release version but working in debug version. How do I check for errors?

Trondro Mulligan
- 485
- 3
- 19
1
vote
1 answer
Android Studio - How to monitor device after reboot?
I'm developing an app with a BootReceiver class which is misbehaving so I would like to view its Log.d(...) output after the device is restarted.
When the app restarts, it shows as DEAD in the Android Monitor tab so no log output is shown. Is there…

ban-geoengineering
- 18,324
- 27
- 171
- 253
1
vote
1 answer
How to get Android Log messages during runtime of app?
Is it possible to get a handle of all the Log.d (tag, "") logs from within the application during runtime? I'm creating a test application and I'd like to display a window with a list of all the logs. Thank you.

code
- 5,294
- 16
- 62
- 113
1
vote
0 answers
Show logs written with EventLog.writeEvent in Android Studio
In Android Studio how do I view logs written using the
EventLog.writeEvent(5,"WHY CANT I SEE THIS");
The reason being I want to monitor system events being written by the platform itself and according to the source it's using EventLog.writeEvent…

shoriwa-shaun-benjamin
- 797
- 7
- 19
1
vote
1 answer
Display ArrayList from SQLite database in logs
How I can display items from ArraylIst in Logs?
I have class DataBaseAdapter, where I have Method getCardsArrayList, now I want to display each item from this ArrayLIst in Logs
When I try to write this lines in my MainActivity:
ArrayList…

Ololoking
- 1,577
- 4
- 22
- 37
1
vote
1 answer
Duplicate strings on each click on reading the logcat
I have a button and on its click I am displaying a logcat in a textview.
Button click event -
findViewById(R.id.button).setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
Thread mThread = new…

sjain
- 23,126
- 28
- 107
- 185
1
vote
2 answers
Retrieving calls to Log? e.g. Log.w() Log.e() Log.i()
For an app I'm developing, I want to ease troubleshooting, both while it's in development and when it's released. I want to be able to retrieve calls to Log for when the app is being run without the phone connected in USB debugging, so it can be…

Jodes
- 14,118
- 26
- 97
- 156
0
votes
0 answers
Auto generate TAG in Intellij Idea and Android Studio
I have modified my Android Studio live templates to write the log directly from class name as following, but I am getting this warning message.
How can I avoid it. Also, if I add constto the decleration I get another error:
Const 'val' initializer…

Hasan Mhd Amin
- 220
- 2
- 11
0
votes
0 answers
Android Studio | error: cannot find symbol log.i
I've started learning java with android studio. I am currently facing this error when I am trying to implement the lifecycle functions, it gives me error that it cannot find symbol log.i
Here is the code.
package com.kdev.myapplication;
import…

kirollosmaged
- 1
- 1
0
votes
3 answers
How do I save app logs locally on Android?
I want to save the logs generated by my application locally on the android device and view them in an instance of a crash.
Using the "Take Bug Report" under the developer options gives the entire system logs which are irrelevant to me. I am looking…
0
votes
0 answers
Sending Android logs to logging service
I'm writing an android app in kotlin, and using the standard Log class to write logs throughout my code. For example Log.e(...), Log.i(...) and so on. Sometimes I want to examine those logs, but I don't have access to the device.
Is there a standard…

Yossi Vainshtein
- 3,845
- 4
- 23
- 39