讨论广场 问答详情
请问hilog怎样能实现开机自动落盘,不要发指令再落盘
weixin_43966551 2024-03-19 12:02:22
182 评论 分享

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

hilog -w start -m none -f test -l 30M

182 评论 分享
写回答
全部评论(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"
            ]
        }
    ],

 

1
2024-03-19 15:05:56
2024-03-19 20:36:35
引用:“ { "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" ] }”
非常感谢
2024-03-19 20:36:35
2024-03-19 15:09:01
引用:“路径 \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" ] }
2024-03-19 15:09:01
2024-03-19 15:06:41
路径 \base\hiviewdfx\hilog\services\hilogd\etc\hilogd.cfg
2024-03-19 15:06:41