#include <stdint.h>
#include "littlefs/lfs.h"
Go to the source code of this file.
◆ LOG_subtask_handle_sync_and_close_of_current_log_file()
| void LOG_subtask_handle_sync_and_close_of_current_log_file |
( |
| ) |
|
Flush the current LittleFS log file(s), forcing a write to flash.
- Note
- This function is meant to be called periodically in an RTOS task.
-
This function can be called very frequently. It tracks its own internal configuration.
◆ LOG_to_file_lazy()
| void LOG_to_file_lazy |
( |
const char | filename[], |
|
|
const char | msg[] ) |
Write a log message to an LFS log file.
- Parameters
-
| msg | The message to be logged |
- Note
- LFS files are not updated until the file is closed or synced. Syncing is done periodically in the rtos_background_upkeep task.