feat log file append
Some checks failed
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Successful in 1m53s
linux-arm-gcc / linux-gcc-armhf (push) Successful in 2m46s
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 2m44s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Successful in 2m51s
linux-x64-gcc / linux-gcc (Release) (push) Successful in 2m50s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Failing after 3m0s

This commit is contained in:
tqcq 2024-04-29 17:05:39 +08:00
parent a137ee1f1c
commit 54e9a4e1b4

View File

@ -111,7 +111,7 @@ void
SetLogFileName(const char *file_name) SetLogFileName(const char *file_name)
{ {
g_log_file_name = 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<uint32_t> g_current_id(0); static std::atomic<uint32_t> g_current_id(0);