From 54e9a4e1b4f8321c5b2f49b520a1f160fa42dfdd Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Mon, 29 Apr 2024 17:05:39 +0800 Subject: [PATCH] feat log file append --- src/sled/log/log.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sled/log/log.cc b/src/sled/log/log.cc index 08c592b..57885ee 100644 --- a/src/sled/log/log.cc +++ b/src/sled/log/log.cc @@ -111,7 +111,7 @@ void SetLogFileName(const char *file_name) { g_log_file_name = file_name; - g_log_stream.open(file_name); + g_log_stream.open(file_name, std::ios_base::app); } static std::atomic g_current_id(0);