Runtime enable/disable of log backend FS

Hi,

in our project we want to store the device logs to a FS.

I managed to make it work using the implementation available in the SDK, just enabling CONFIG_LOG_BACKEND_FS and mounting the partition to which the backend will write the logs, everything works fine.

For our use case we want the possibility to enable and disable the logging to FS at runtime.

I see that there are APIs in log_mgmt.c to do so, log_backend_enable() and log_backend_disable() but looking at the implementation of the log backend FS available in log_backend_fs.c i don't see those APIs being used and i can't find a way to achieve this.

Is there a way to do this using the log backend FS available or do we need a custom implementation of it?

Thanks,

Alessio

Parents Reply Children
No Data
Related