Advertisement

研究框架事件日志

阅读量:

在frameworks/base的源代码中,发现了一些异常的EventLogTags.logtags文件,令人惊讶的是,这些文件竟然能够作为src参与编译过程,对此感到困惑不已,只能深入研究源码并整理记录如下。

system/core/logcat/event.logtags文件用于描述各个tag的格式,并包含部分用于测试的日志标签,具体说明如下:

复制代码
 1 # The entries in this file map a sparse set of log tag numbers to tag names.

    
   2 # This is installed on the device, in /system/etc, and parsed by logcat.
    
   3 #
    
   4 # Tag numbers are decimal integers, from 0 to 2^31.  (Let's leave the
    
   5 # negative values alone for now.)
    
   6 # Tag numbers是十进制的整数,取值从0到2^31
    
   7 # Tag names are one or more ASCII letters and numbers or unders

全部评论 (0)

还没有任何评论哟~