mikopos
mikopos

Reputation: 41

log.d doesn't appear in Logcat

I have two smartphones one Nexus 4 and one Vodafone Smart 3 (TLC - Alcatel v975). In my Sourcecode I have two log.d and if I make the debugging on Nexus the log.d appear in Logcat, but when I'm using Vodafone Smart 3 , log.d doesn't appear in Logcat ... My Sourcecode is the following :

public void savetime(View view){

    Integer hour= mitsos.getCurrentHour();
    Integer minutes=mitsos.getCurrentMinute();
    Log.d("mitsos","hour "+hour);
    Log.d("mitsos","minutes"+minutes);}

Upvotes: 2

Views: 5167

Answers (3)

Yogesh Rathi
Yogesh Rathi

Reputation: 6499

Some device not print debug log, but you can use below method

Log.wtf("tag","msg");

its working for me.

Upvotes: 4

Waqar Ahmed
Waqar Ahmed

Reputation: 5068

you can use System.out.println("") as well for wrting to log cats.I have also come across with the same problem on my device.Sometime device did log but sometime didnt. but System.out.println("") always works for me.

Upvotes: 0

mookrs
mookrs

Reputation: 11

Try "Unable to open log device '/dev/log/main': No such file or directory", set the log level.

If you don't see the service menu, make sure that your ROM support it, otherwise you maybe need to use another ROM (usually official) or just use Log.i() instead.

Upvotes: 0

Related Questions