Luna::flush_log_to_file

void flush_log_to_file()

Flushes the log-to-file cache and writes all cached logs to the log file.

Remark

For performance reasons, when logging-to-file is enabled, log messages will be cached in a log buffer and written to the log file in one call when the buffer is full. The user can also call flush_log_to_file to flush the cache manually when needed.