我在Logcat中建的如上图的过滤器,建好后,运行Android程序,可是什么都不显示啊,为什么啊?

解决方案 »

  1.   

    你的log里面打Syetem.out这样的log了么?你加的过滤器只能检测到Syetem.out输出,如果找不到,当然是空的!
      Log.i(TAG, "system.out!");
      

  2.   

    Filter name随便指定,
    by Log Tag就是你Log.i(TAG,"you log");的第一个参数TAG,是个string类型的字符串,自己定义的标签名.
    假如这么写Log.i("HELLO","you log");
    那by Log Tag就是HELLO.
      

  3.   

     那请问Log.i(TAG,"you log");这个方法是在哪写着呢?onCreate()方法里?还是?
      

  4.   

     我的表达有误吗?
      嗯  是这样的
          我看到视频上的老师就是那样建了一个System.out的filter,
                     然后他在程序里写的System.out.println("");全部都能显示在System.out这个filter里面,我的却不能显示,不知道为什么?
      

  5.   


    Log.i(TAG,"you log");这个是log语句,你在执行你的方法前写就行了,不影响整个执行效果,只是让它输出,让你知道你的程序执行到哪一步了!
    Filter name:你随便起名就行了
    但是by Log Tag:必须是你程序里面的log,比如你的log是Log.i("TAG","you log");的话
    by Log Tag:TAG
      

  6.   


             是这个问题,不是不显示Log.i的内容,而是System.out.println的内容
      

  7.   

    Log.i("System.out","这里是你要看的内容")
      

  8.   

    System.out.println(""); 是可以在Logcat里 直接显示出来的
      

  9.   

    属于 I (Information,绿色字体) 标签是 System.out
      

  10.   

    就是在filter的tag里写上System.out就行了
      

  11.   

    在 Log Filter 中  by Log Tag: System.out 就可以了。
      

  12.   

    System.out.println("")可以,但System.out.print("");不可以
      

  13.   

    不要选择 Android,选择DDMS,在看LogCat就有显示了
      

  14.   

    "System.out.println("")可以,但System.out.print("");不可以"
    --楼主估计问题在这里吧~
    println是可以显示在System.out中的,而print却不能显示。
      

  15.   

    我觉得和缓冲区相关:
    1、System.out.print("Create button is clicked...");  
       不会在logcat中输出。
    2、System.out.print("Create button is clicked...\n");
       可以再logcat中输出。
    3、System.out.print("Create button is clicked...");
       System.out.flush();
       可以再logcat中输出。个人观点,不一定正确,欢迎继续探讨...