无数Log.v .d .w ,Logcat里看不到呀,去哪了呢 ?
谁知道呀?我自己加的Log.w 在Logcat里也读不到,嗯?去哪了呢???

解决方案 »

  1.   

    厄 沉了 自己up  谁研究过cts
      

  2.   


     //Implement the JpegPictureCallback
                private final class JpegPictureCallback implements  PictureCallback {
                    public void onPictureTaken(byte[] rawData, Camera camera) {
                        try {
                            if (rawData != null) {
                                int rawDataLength = rawData.length;
                                File rawoutput = new File(Environment
                                        .getExternalStorageDirectory().toString(),
                                        "/test.bmp");
                                FileOutputStream outstream = new FileOutputStream(
                                        rawoutput);
                                outstream.write(rawData);
                                Log.v(TAG, "JpegPictureCallback rawDataLength = "
                                        + rawDataLength);
                                jpegPictureCallbackResult = true;
                            } else {
                                jpegPictureCallbackResult = false;
                            }
                            mSnapshotDone.open();
                            Log.v(TAG, "Jpeg Picture callback");
                        } catch (Exception e) {
                            Log.v(TAG, e.toString());
                        }
                    }
                };
      

  3.   

    能把情况说明白点吗? 全部的logcat都看不到?还是一部分看不到? 你试过把logcat导入到文件再查吗?
      

  4.   

    adb logcat不就可以看到cts的log吗?
    我都是这么看的,要不就导出到文件中adb logcat > cts.txt
    没做什么特别处理啊。
    用cts-2.2-r6, cts-2.3-r2,r4等都没问题啊
    自己加我都是用LOGE
      

  5.   

    有时候Log.e,v,w不起作用的时候我用的System.out.println();
      

  6.   


    某个testcase里的Log.d 全部都看不到 
     比如2L所添加的
      

  7.   


    自己make后你的cts是r几
    你所看到的cts.txt可以举个例子给我看吗  
      

  8.   


    System.out.println();
    会打印到哪里为什么Log.e,v,w会不起作用
      

  9.   

    The Android logging system keeps multiple circular buffers for log messages, and not all of the log messages are sent to the default circular buffer. To see additional log messages, you can run the logcat command with the -b option, to request viewing of an alternate circular buffer. You can view any of these alternate buffers:    radio — View the buffer that contains radio/telephony related messages.
        events — View the buffer containing events-related messages.
        main — View the main log buffer (default)The usage of the -b option is:[adb] logcat [-b <buffer>]Here's an example of how to view a log buffer containing radio and telephony messages:adb logcat -b radio
      

  10.   

    还有logcat 的buffer 是有大小的,貌似是256K,如果超过了大小,前面的部分就看不到了。
      

  11.   

    adb logcat不就可以看到cts的log吗?
    我都是这么看的,要不就导出到文件中adb logcat > cts.txt
    没做什么特别处理啊。
    用cts-2.2-r6, cts-2.3-r2,r4等都没问题啊
    自己加我都是用LOGE
      

  12.   


    我就打印一句话 肯定超不了 
    我要是不知道logcat 怎么使 就别写程序了