Logcat debug level --help

by Yash Jain » Thu, 07 Apr 2011 21:13:00 GMT


Sponsored Links
 Hello All,
I have one dumb question,
when i read a logcat message through command logcat -d, i will get a list of
all events with the prefix I, V, D, W, and E which represent *I*nformation,
*V*erbose, *D*ebug, *W*arning and *E*rror.
I am interested only to display the error messages in the log file( logcat
-f log_error.txt) or to the console( logcat -d).
Can anyone help me to print only the error log messages.

Thanks in advance.

Regards,
Yash Jain.

-- 



Re: Logcat debug level --help

by Michael » Fri, 08 Apr 2011 07:01:48 GMT


 try adb logcat *:e




-- 


Sponsored Links


Re: Logcat debug level --help

by Yash Jain » Tue, 12 Apr 2011 13:47:02 GMT


 Hello All,
Thanks for your inputs, Filtering of log message helped me lot to debug.

Regards,
Yash.


---------- Forwarded message ----------
From: Michael <michaeldh...@gmail.com>
Date: Thu, Apr 7, 2011 at 7:01 PM
Subject: [android-developers] Re: Logcat debug level --help
To: Android Developers <android-developers@googlegroups.com>


try adb logcat *:e





>> 



Other Threads

1. Need help with ServerSocket

Java:

public void server()
         {
          DataOutputStream os=null;
             DataInputStream is = null;
             ServerSocket socket = null;
             Socket ClientSocket = null;
             String out = null;
             try
             {
              socket = new ServerSocket(SERVERPORT);//10.0.2.2

              if(socket == null)
              {
               Log.d("TagServer()", "socket null");
              }
              else
              {
               Log.d("TagServer()", "Waiting...");
               ClientSocket = socket.accept();
                     os = new DataOutputStream
(ClientSocket.getOutputStream());
                     is = new DataInputStream
(ClientSocket.getInputStream());
                     /* By magic we know, how much data will be
waiting for us*/
                     byte[] buf = new byte[100];
                     int readLen = 0;
                     boolean listening = true;


                     while(listening == true)
                     //while((out != "end") || (readLen = is.read(buf,
0, 100)) != -1)
                     //while (out != "end")
                     {

                      if ((readLen = is.read(buf, 0, 100)) != -1){
                      out = new String(buf, 0, readLen-1);
                      Log.d("TCP", out);
                      os.writeBytes("gotit");

                      String test = out.toString();

                      if (test != "end")
                         {
                              listening = true;
                          }else{
                              listening = false;
                          }
                      }

                     }
                     os.close();
                     is.close();
                     socket.close();
                     ClientSocket.close();
                     Log.d("TagServer()", "Finished");
              }
             }
             catch(Exception e)
             {
              System.out.println(e);
              Log.d("TagServer()", e.toString());
             }
         }


Ok I am trying to be able to stop listening for packets and I am
trying to do that with the test variable.
no matter what it seems that test never = ends.

Any ideas?
--~--~---------~--~----~------------~-------~--~----~

2. location and usage of Screen Time Out

Hi,

I am trying to change the default screen time out for phone calls. I
have looked through PhoneApp.java and see that there are calls to
PowerManager and LocalPowerManager, which are located in the
frameworks. Unfortunately,  I am only able to find references to
default durations, for example:

(from PhoneApp.java)

case MEDIUM:
                // Set the poke lock to timeout the display after a
medium
                // timeout (15s). This ensures that the screen goes to
sleep
                // as soon as acceptably possible after we the wake
lock
                // has been released.
                pokeLockSetting |=
LocalPowerManager.POKE_LOCK_MEDIUM_TIMEOUT;
                break;

(In LocalPowerManager)

public static final int POKE_LOCK_MEDIUM_TIMEOUT = 0x4;

Is the final "0x4" in "POKE_LOCK_MEDIUM_TIMEOUT = 0x4" some reference
to the duration of the timeout? If not, what is it?

Thanks.



--~--~---------~--~----~------------~-------~--~----~

3. Is the Android team ever going to take responsibility for the terrible Android Market?

4. Is the Android team ever going to take responsiblity for the terrible Android Market?

5. Parsing Speed: Reading InputStream vs. Converting InputStream to String

6. How to scroll text in chat window

7. Spinner Data Trouble