demo about CONFIG_LOG_BACKEND_FS=y

hi support team,

Do we have demo on how to save logs backend to external flash in ncs ?

i do see demo :zephyr\tests\subsys\logging\log_backend_fs, but there is no example about how to use it in nrf folder.

Regards,

William.

Parents Reply
  • hi Runar,

    to my understanding, i still need to mount my partition node and manually save the log to external flash,like this:

        struct fs_mount_t *mp = &FS_FSTAB_ENTRY(PARTITION_NODE);

        rc = fs_mount(mp);    
       
        rc = fs_opendir(&dir, CONFIG_LOG_BACKEND_FS_DIR);
    we don't have existing code or config to do this kind of work,right?
    Regards,
    William.
Children
Related