feat(logging): rotating log files (#5485)

This commit is contained in:
Dave Lane authored and GitHub committed 2026-08-07 21:12:25 -04:00
1 parent 49e5697746
commit 7df8c62ea7
7 files changed
+164 -8

No files matched your search

+5
View File
@@ -156,6 +156,11 @@ namespace logging {
deinit();
}
const auto log_path = std::filesystem::path {std::u8string {log_file.begin(), log_file.end()}};
if (const auto rotation_error = rotate_log_file(log_path)) {
std::cerr << "Failed to rotate log file '" << log_file << "': " << rotation_error.message() << '\n';
}
#ifndef __ANDROID__
setup_av_logging(min_log_level);
setup_libdisplaydevice_logging(min_log_level);