android log

 其实通过log.class源码发现:
public static int i(String tag, String msg) {
        return println_native(LOG_ID_MAIN, INFO, tag, msg);
    }

应该是没有将log输出到某个文件的,只是将log打印到的控制台。

在用户分区是没有实际的log文件 
所谓的log实际上就通过底层对dev/log的写入来实现的

The logging system consists of:
a kernel driver and kernel buffers for storing log messages
C, C++ and Java classes for making log entries and for accessing the log messages
a standalone program for viewing log messages (logcat)
ability to view and filter the log messages from the host machine (via eclipse or ddms)

所以你实际上是可以在手机的dev/log目录下找到对应的log文件的


你可能感兴趣的:(android,log)