Android log日志系统

(1)源码路径:system/core/liblog/logger_write.c:411:  LIBLOG_ABI_PUBLIC int __android_log_write(int prio, const char* tag。

(2)日志记录器缓存区大小。辅助功能>开发者选项>日志记录器缓存区大小。

(3)

kernel\drivers\staging\android\logger.c,

static int __init logger_init(void)
{
int ret;
ret = create_log(LOGGER_LOG_MAIN, 256*1024*8);
if (unlikely(ret))
goto out;


ret = create_log(LOGGER_LOG_EVENTS, 256*1024*8);
if (unlikely(ret))
goto out;


ret = create_log(LOGGER_LOG_RADIO, 256*1024*8);
if (unlikely(ret))
goto out;


ret = create_log(LOGGER_LOG_SYSTEM, 256*1024*8);
if (unlikely(ret))
goto out;
out:
return ret;
}
 

你可能感兴趣的:(Android系统)