mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-12-01 17:41:12 +00:00
feat(logging): rotating log files (#5485)
This commit is contained in:
1 parent
49e5697746
commit
7df8c62ea7
7 files changed
+164
-8
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user