当前位置:网站首页>AOSP ~ logcat persistence
AOSP ~ logcat persistence
2022-06-29 13:16:00 【Nanke is cute】
I found an option to store logs: Settings -> System -> Advanced -> Developer options -> Store logger data persistently on device
Store logger data persistently on device: Select the type of log messages you want to store persistently on the device. Options are off, all, all but radio, or kernel only.
logd is the logging daemon on Android which mainly covers the functionality of its desktop counterpart syslogd, but also includes klogd and partially auditd to get logs from SELinux subsystem of kernel. However logd just reads from different memory buffers (in RAM) and doesn’t save to persistent memory (files) by default. We can use commandline tools logcat and log to read/write from/to logd respectively. Read here more about memory buffers - main, system, radio, events, and crash.
If one needs persistent logs as files, a separate sub-service (available on userdebug and eng builds only since Oreo (1)) named logcatd (logcat daemon which itself reads from logd) can save them to filesystem in /data/misc/logd/ (not accessible without root). Behavior of the service on boot is controlled by properties logd.logpersistd.enable and persist.logd.logpersistd (2). Or to manually start/stop the service shell scripts /system/bin/logpersist.[start|stop] can be used.
The option “Store logger data persistently on device” in “Developer Options” also controls the same service using property persist.logd.logpersistd.buffer. From official documentation:
Store logger data persistently on device: Select the type of log messages you want to store persistently on the device. Options are off, all, all but radio, or kernel only.
Reference resources : https://elinux.org/Android_Logging_System
边栏推荐
- 神经网络各个部分的作用 & 彻底理解神经网络
- C # realizes the first order traversal, middle order traversal and second order traversal of binary tree
- Cvpr2022 𞓜 future transformer with long-term action expectation
- C语言字符函数
- *打卡算法*LeetCode 146. LRU 缓存 算法解析
- Code tidiness learning notes
- AES-128-CBC-Pkcs7Padding加密PHP实例
- 安装typescript环境并开启VSCode自动监视编译ts文件为js文件
- Clickhouse database uses JDBC to store milliseconds and nanoseconds
- C#通過中序遍曆對二叉樹進行線索化
猜你喜欢
随机推荐
编写一个shell脚本,求一个数的”逆序数“
C#通过线索二叉树进行中序遍历输出
从零搭建Pytorch模型教程(四)编写训练过程--参数解析
Cvpr2022 | a convnet for the 2020s & how to design neural network Summary
C#线索二叉树的定义
LR、CR纽扣电池对照表
Matlab to find the limit
Don't build the wheel again. It is recommended to use Google guava open source tool class library. It is really powerful!
商品搜索引擎—推荐系统设计
Server monitoring netdata panel configuring mail service
mysql调优
Comparison table of LR and Cr button batteries
The role of each part of Neural Network & thoroughly understand neural network
Cvpr2022 𞓜 thin domain adaptation
How to count project codes (e.g. wechat applets)
Code tidiness learning notes
C#实现顺序表定义、插入、删除、查找操作
CVPR2022 | 通过目标感知Transformer进行知识蒸馏
Testing -- automated testing: about the unittest framework
C # realize the definition, stack entry and stack exit of stack structure








