请问hilog怎样能实现开机自动落盘,不要发指令再落盘

请问hilog怎样能实现开机自动落盘,不要发指令再落盘
hilog -w start -m none -f test -l 30M
您需要先 登录 才能评论/回答

全部评论(4)
在hilog.cfg 配置文件中添加CMD指令自动开去存盘任务
"mkdir /data/log/ 0775 system log",
"mkdir /data/log/hilog/ 0755 logd log",
"start hilogd"
]
}, {
"name" : "post-fs-data",
"cmds" : [
"exec /system/bin/hilog -w start -l 10M -n 1000",
"exec /system/bin/hilog -w start -t kmsg -l 10M -n 500"
]
}, {
"name" : "services:hilogd",
"cmds" : [
"write /proc/sys/net/unix/max_dgram_qlen 6000"
]
}
],

2024-03-19 15:05:56
引用:“ { "name" : "post-fs-data", "cmds" : [ "exec /system/bin/hilog -w start -l 10M -n 1000", "exec /system/bin/hilog -w start -t kmsg -l 10M -n 500" ] }”
非常感谢

引用:“路径 \base\hiviewdfx\hilog\services\hilogd\etc\hilogd.cfg”
{ "name" : "post-fs-data", "cmds" : [ "exec /system/bin/hilog -w start -l 10M -n 1000", "exec /system/bin/hilog -w start -t kmsg -l 10M -n 500" ] }
